[goffice] make sure that gog_graph_populate_editor unrefs the GtkBuilder.



commit 34eca344750372ddc7270ed139177a362a012397
Author: Jean Brefort <jean brefort normalesup org>
Date:   Fri Jun 17 17:16:06 2011 +0200

    make sure that gog_graph_populate_editor unrefs the GtkBuilder.

 goffice/graph/gog-graph.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/goffice/graph/gog-graph.c b/goffice/graph/gog-graph.c
index a87fca6..5b55ed8 100644
--- a/goffice/graph/gog-graph.c
+++ b/goffice/graph/gog-graph.c
@@ -252,10 +252,10 @@ gog_graph_populate_editor (GogObject *gobj,
 
 		box = go_gtk_builder_get_widget (gui, "gog_graph_prefs");
 		go_editor_add_page (editor, box, _("Theme"));
-		g_object_unref (gui);
 
 		g_slist_free (theme_names);
 	}
+	g_object_unref (gui);
 
 	go_editor_set_store_page (editor, &graph_pref_page);
 }



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