aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r--src/bookmarks/ephy-bookmarks.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index be9884956..84c84f92c 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -809,6 +809,13 @@ ephy_bookmarks_finalize (GObject *object)
ephy_bookmarks_save (eb);
+ /* have to do this before unreffing the nodes */
+ LOG ("Unref bookmarks toolbars model")
+ if (eb->priv->toolbars_model != NULL)
+ {
+ g_object_unref (eb->priv->toolbars_model);
+ }
+
ephy_node_unref (eb->priv->bookmarks);
ephy_node_unref (eb->priv->keywords);
ephy_node_unref (eb->priv->favorites);
@@ -816,12 +823,6 @@ ephy_bookmarks_finalize (GObject *object)
g_object_unref (eb->priv->db);
- LOG ("Unref bookmarks toolbars model")
- if (eb->priv->toolbars_model != NULL)
- {
- g_object_unref (eb->priv->toolbars_model);
- }
-
g_free (eb->priv->xml_file);
g_free (eb->priv->rdf_file);