[gnome-control-center/gnome-3-4] user-accounts: Fix memory leak of GtkBuilder in accounts dialog



commit 30b13c3f89330105905476902d9529eb85c9a496
Author: Stef Walter <stefw gnome org>
Date:   Wed Jun 6 23:28:05 2012 +0200

    user-accounts: Fix memory leak of GtkBuilder in accounts dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677548

 panels/user-accounts/um-account-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index e5caf49..2457367 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -220,6 +220,7 @@ um_account_dialog_new (void)
         widget = (GtkWidget *) gtk_builder_get_object (builder, "account-type-combo");
         um->account_type_combo = widget;
 
+        g_object_unref (builder);
         return um;
 }
 



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