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

The were not unrefed at all before
This commit is contained in:
Michael Natterer 2010-06-24 12:49:54 +02:00
parent ad83462570
commit 3c565a1736
1 changed files with 18 additions and 0 deletions

View File

@ -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;