summaryrefslogtreecommitdiff
path: root/gtk/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-08-01 00:58:42 +0100
committerVincent Sanders <vince@kyllikki.org>2014-08-01 01:00:13 +0100
commit58eea873f875b58050a01478b4aaed0d75135e9a (patch)
tree50c532e971a097a756b7391de97960316b957ae8 /gtk/gui.c
parent43fea75b7290cdcbfafa8e159dc3832581352755 (diff)
downloadnetsurf-58eea873f875b58050a01478b4aaed0d75135e9a.tar.gz
netsurf-58eea873f875b58050a01478b4aaed0d75135e9a.tar.bz2
rationalise source view
Diffstat (limited to 'gtk/gui.c')
-rw-r--r--gtk/gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 7a8c32186..4d2848366 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -208,6 +208,11 @@ nsgtk_new_ui(char **respath, const char *name, GtkBuilder **pglade)
if (pglade != NULL) {
*pglade = builder;
+ } else {
+ /* release our reference to the builder if it is not
+ * being used.
+ */
+ g_object_unref(G_OBJECT(builder));
}
return filepath;
@@ -237,6 +242,7 @@ nsgtk_init_glade(char **respath)
glade_file_location->options = nsgtk_new_ui(respath, "options", NULL);
glade_file_location->hotlist = nsgtk_new_ui(respath, "hotlist", NULL);
glade_file_location->cookies = nsgtk_new_ui(respath, "cookies", NULL);
+ glade_file_location->viewdata = nsgtk_new_ui(respath, "viewdata", NULL);
glade_file_location->warning = nsgtk_new_ui(respath, "warning", &gladeWarning);
nsgtk_warning_window = GTK_WINDOW(gtk_builder_get_object(gladeWarning, "wndWarning"));