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



commit cbf0bf113fce5e13b92d17538b586bde1703e5a5
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 24 12:56:07 2010 +0200

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

 app/paint/gimp-paint.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/paint/gimp-paint.c b/app/paint/gimp-paint.c
index d036bb3..8ad7f65 100644
--- a/app/paint/gimp-paint.c
+++ b/app/paint/gimp-paint.c
@@ -97,6 +97,8 @@ gimp_paint_exit (Gimp *gimp)
 
   if (gimp->paint_info_list)
     {
+      gimp_container_foreach (gimp->paint_info_list,
+                              (GFunc) g_object_run_dispose, NULL);
       g_object_unref (gimp->paint_info_list);
       gimp->paint_info_list = NULL;
     }



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