Commit d1ca6913 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

m-default-nodes-api: free default nodes when disabling plugin

parent 6bd98333
......@@ -144,6 +144,9 @@ wp_default_nodes_api_disable (WpPlugin * plugin)
if (self->idle_source)
g_source_destroy (self->idle_source);
g_clear_pointer (&self->idle_source, g_source_unref);
for (guint i = 0; i < N_DEFAULT_NODES; i++)
g_clear_pointer (&self->defaults[i], g_free);
g_clear_object (&self->om);
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