[gimp/soc-2010-cage] app: run dispose on the tool infos before unrefing their container



commit b7e0d602fe634fffa2ee9d8e934feda671c71236
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 24 12:57:00 2010 +0200

    app: run dispose on the tool infos before unrefing their container
    
    because they contain reference cycles with the tool options

 app/core/gimp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp.c b/app/core/gimp.c
index 9aeb0b0..85efa9a 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -336,6 +336,8 @@ gimp_finalize (GObject *object)
 
   if (gimp->tool_info_list)
     {
+      gimp_container_foreach (gimp->tool_info_list,
+                              (GFunc) g_object_run_dispose, NULL);
       g_object_unref (gimp->tool_info_list);
       gimp->tool_info_list = NULL;
     }



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