Commit 3c565a17 authored by Michael Natterer's avatar Michael Natterer 😴

app: unref context, dialog_factory and ui_manager in GObject::dispose()

The were not unrefed at all before
parent ad834625
......@@ -410,6 +410,24 @@ gimp_toolbox_dispose (GObject *object)
toolbox->p->in_destruction = TRUE;
if (toolbox->p->context)
{
g_object_unref (toolbox->p->context);
toolbox->p->context = NULL;
}
if (toolbox->p->dialog_factory)
{
g_object_unref (toolbox->p->dialog_factory);
toolbox->p->dialog_factory = NULL;
}
if (toolbox->p->ui_manager)
{
g_object_unref (toolbox->p->ui_manager);
toolbox->p->ui_manager = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
toolbox->p->in_destruction = FALSE;
......
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