[gimp] Unref the menubar_manager in finalize()
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Unref the menubar_manager in finalize()
- Date: Tue, 29 Sep 2009 18:38:04 +0000 (UTC)
commit e5d8067a87b3b4a12a8c6e01de9939b90ac93843
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 25 01:35:03 2009 +0200
Unref the menubar_manager in finalize()
app/display/gimpimagewindow.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index a50a4da..1c6f7c6 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]