[gimp] app: private->shells might be a list with one element upon destroy; free it



commit cf1cc6dc6f7cc48037c048d8ea8683e83f83457e
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 22 23:03:30 2010 +0200

    app: private->shells might be a list with one element upon destroy; free it

 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 07620e8..c2852a6 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -398,6 +398,12 @@ gimp_image_window_finalize (GObject *object)
                                         gimp_image_window_update_ui_manager,
                                         window);
 
+  if (private->shells)
+    {
+      g_list_free (private->shells);
+      private->shells = NULL;
+    }
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]