[gpointing-device-settings] unref GtkBuilder object before gtk_main().



commit ad3645cfeabc4a9a9da2047a7ab937d23427c390
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date:   Fri Mar 5 19:01:08 2010 +0900

    unref GtkBuilder object before gtk_main().

 src/gpointing-device-settings.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpointing-device-settings.c b/src/gpointing-device-settings.c
index c3f3c3f..70e4048 100644
--- a/src/gpointing-device-settings.c
+++ b/src/gpointing-device-settings.c
@@ -255,10 +255,11 @@ main (int argc, char *argv[])
                      G_CALLBACK(cb_selection_changed), notebook);
 
     append_uis(GTK_ICON_VIEW(icon_view), GTK_NOTEBOOK(notebook));
+    g_object_unref(builder);
+
     gtk_widget_show_all(dialog);
     gtk_main();
 
-    g_object_unref(builder);
     gpds_quit();
 
     return 0;



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