aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--embed/downloader-view.c1
-rw-r--r--src/language-editor.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index eee883bb3..54f2991d6 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -352,6 +352,7 @@ downloader_view_build_ui (DownloaderView *dv)
gtk_tree_view_set_model (GTK_TREE_VIEW(priv->treeview),
GTK_TREE_MODEL (liststore));
+ g_object_unref (liststore);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW(priv->treeview),
TRUE);
diff --git a/src/language-editor.c b/src/language-editor.c
index d72a50699..7325fb4c2 100644
--- a/src/language-editor.c
+++ b/src/language-editor.c
@@ -267,6 +267,7 @@ language_editor_set_view (LanguageEditor *ge,
gtk_tree_view_set_model (GTK_TREE_VIEW(ge->priv->treeview),
ge->priv->model);
+ g_object_unref (ge->priv->model);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW(ge->priv->treeview),
FALSE);