[five-or-more] Unref the UI builders



commit ee4a8ec281fa363af248b0c9afdd65b8856e8fe6
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Aug 27 22:51:32 2014 +0300

    Unref the UI builders
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735547

 src/five-or-more.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 0667e94..720067f 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -1409,6 +1409,8 @@ game_props_callback (GSimpleAction *action,
     g_signal_connect (fast_moves_checkbutton, "clicked",
                       G_CALLBACK (set_fast_moves_callback), NULL);
 
+    g_object_unref (G_OBJECT (builder_preferences));
+
     pref_dialog_done = TRUE;
   }
 
@@ -1620,6 +1622,8 @@ startup_cb (GApplication *application)
   load_properties ();
 
   gtk_builder_connect_signals (builder, NULL);
+
+  g_object_unref (G_OBJECT (builder));
 }
 
 static void


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