Commit f586aac4 authored by Michael Natterer's avatar Michael Natterer 😴

app: use g_clear_foo() in gimp_gegl_procedure_finalize()

parent e55c94ef
......@@ -119,12 +119,11 @@ gimp_gegl_procedure_finalize (GObject *object)
{
GimpGeglProcedure *proc = GIMP_GEGL_PROCEDURE (object);
if (proc->default_settings)
g_object_unref (proc->default_settings);
g_clear_object (&proc->default_settings);
g_free (proc->menu_label);
g_free (proc->label);
g_free (proc->help_id);
g_clear_pointer (&proc->menu_label, g_free);
g_clear_pointer (&proc->label, g_free);
g_clear_pointer (&proc->help_id, g_free);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
......
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