[gedit-cossa] Do not leak the builder



commit cb3ea4807d4476f39d5fed75d474397ba8bcdc19
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun May 29 15:12:15 2011 +0200

    Do not leak the builder

 src/cossa-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/cossa-window.c b/src/cossa-window.c
index 3aa2eed..12fd15f 100644
--- a/src/cossa-window.c
+++ b/src/cossa-window.c
@@ -196,6 +196,8 @@ load_samples (CossaWindow *window)
 
       widget = GTK_WIDGET (gtk_builder_get_object (builder, "preview-sample-toplevel"));
 
+      g_object_unref (builder);
+
       if (!GTK_IS_OFFSCREEN_WINDOW (widget))
         continue;
 



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