[gimp] app: don't leak the GtkTextBuffers of Gegl multiline text properties



commit 5e2d91dc0a4defb29454ed1f129c5eed0b30c963
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 20 08:59:42 2014 +0200

    app: don't leak the GtkTextBuffers of Gegl multiline text properties

 app/widgets/gimppropgui.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimppropgui.c b/app/widgets/gimppropgui.c
index a462e61..263f64d 100644
--- a/app/widgets/gimppropgui.c
+++ b/app/widgets/gimppropgui.c
@@ -246,6 +246,7 @@ gimp_prop_widget_new_from_pspec (GObject               *config,
 
           buffer = gimp_prop_text_buffer_new (config, pspec->name, -1);
           view = gtk_text_view_new_with_buffer (buffer);
+          g_object_unref (buffer);
 
           widget = gtk_scrolled_window_new (NULL, NULL);
           gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (widget),


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