Commit 994aca31 authored by Christian Hergert's avatar Christian Hergert
Browse files

xml-pack: clear struct fields when freeing

parent 081ea176
...@@ -128,8 +128,9 @@ typedef struct _FetchSchemasState ...@@ -128,8 +128,9 @@ typedef struct _FetchSchemasState
static void static void
fetch_schema_state_free (FetchSchemasState *state) fetch_schema_state_free (FetchSchemasState *state)
{ {
g_object_unref (state->self); g_clear_object (&state->self);
g_ptr_array_unref (state->schemas); g_clear_pointer (&state->schemas, g_ptr_array_unref);
self->task = NULL;
g_slice_free (FetchSchemasState, state); g_slice_free (FetchSchemasState, state);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment