Fix a finalizer issue

svn path=/trunk/; revision=19275
This commit is contained in:
Matthias Clasen
2007-12-28 15:57:14 +00:00
parent c30e1d8e00
commit 98c4b12ea3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkitemfactory.c (gtk_item_factory_finalize): Don't unref
accel_group unless it is set.
2007-12-28 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (get_default_title): Don't return NULL.

View File

@ -514,7 +514,9 @@ gtk_item_factory_finalize (GObject *object)
ifactory = GTK_ITEM_FACTORY (object);
g_object_unref (ifactory->accel_group);
if (ifactory->accel_group)
g_object_unref (ifactory->accel_group);
g_free (ifactory->path);
g_assert (ifactory->widget == NULL);