summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nautilus-bookmark-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c
index a0698d691..b2d7e66ea 100644
--- a/src/nautilus-bookmark-list.c
+++ b/src/nautilus-bookmark-list.c
@@ -258,7 +258,6 @@ nautilus_bookmark_list_item_with_location (NautilusBookmarkList *bookmarks,
guint *index)
{
GList *node;
- g_autoptr (GFile) bookmark_location = NULL;
NautilusBookmark *bookmark;
guint idx;
@@ -269,6 +268,8 @@ nautilus_bookmark_list_item_with_location (NautilusBookmarkList *bookmarks,
for (node = bookmarks->list; node != NULL; node = node->next)
{
+ g_autoptr (GFile) bookmark_location = NULL;
+
bookmark = node->data;
bookmark_location = nautilus_bookmark_get_location (bookmark);