[gimp] app: don't ref the tool options GUI in gimp_tool_options_editor_dispose()



commit 69f6d7fc8a52780d2af11bc7cbb2a6bf3f2ca810
Author: Michael Natterer <mitch gimp org>
Date:   Thu Oct 9 00:35:57 2014 +0200

    app: don't ref the tool options GUI in gimp_tool_options_editor_dispose()
    
    They are kept alive by a ref owned by GimpToolOptions, refing them
    here made them all being leaked on exit.

 app/widgets/gimptooloptionseditor.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimptooloptionseditor.c b/app/widgets/gimptooloptionseditor.c
index 9d3950a..da37b2d 100644
--- a/app/widgets/gimptooloptionseditor.c
+++ b/app/widgets/gimptooloptionseditor.c
@@ -255,7 +255,6 @@ gimp_tool_options_editor_dispose (GObject *object)
 
       for (list = options; list; list = g_list_next (list))
         {
-          g_object_ref (list->data);
           gtk_container_remove (GTK_CONTAINER (editor->p->options_vbox),
                                 GTK_WIDGET (list->data));
         }


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