Don't leak the bookmarks when enumerating them

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2011-10-05 09:53:09 -05:00
parent 8f786e0b12
commit 5661b7b991

View File

@ -749,13 +749,15 @@ update_places (GtkPlacesSidebar *sidebar)
sidebar->uri, mount_uri, last_uri,
&last_iter, &select_path);
g_object_unref (root);
g_object_unref (icon);
g_free (mount_uri);
g_free (tooltip);
g_free (bookmark_name);
}
g_slist_foreach (bookmarks, (GFunc) g_object_unref, NULL);
g_slist_free (bookmarks);
last_iter = add_heading (sidebar, SECTION_COMPUTER,
_("Computer"));