[sound-juicer] don't leak play button GtkSizeGroup



commit ac8dad9a4bf41b2adf78287aae5c9c9fef48740f
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Aug 1 14:01:57 2011 +0200

    don't leak play button GtkSizeGroup
    
    Each element of the GtkSizeGroup holds a reference to it, so we
    can safely drop the initial reference we got to the GtkSizeGroup,
    it won't get destroyed  before all its member are destroyed.

 src/sj-main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index e1c41cf..7b5af43 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -1761,6 +1761,7 @@ int main (int argc, char **argv)
                               fake_button2);
 
     gtk_size_group_add_widget (size_group, play_button);
+    g_object_unref (G_OBJECT (size_group));
   }
 
   setup_genre_entry (genre_entry);



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