Fix a finalizer issue
svn path=/trunk/; revision=19275
This commit is contained in:
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user