Unref the menubar_manager in finalize()

This commit is contained in:
Michael Natterer 2009-09-25 01:35:03 +02:00
parent 8086bc8e68
commit e5d8067a87
1 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,12 @@ gimp_image_window_finalize (GObject *object)
{
GimpImageWindow *window = GIMP_IMAGE_WINDOW (object);
if (window->menubar_manager)
{
g_object_unref (window->menubar_manager);
window->menubar_manager = NULL;
}
G_OBJECT_CLASS (parent_class)->finalize (object);
}