summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-05-02 10:26:44 +1200
committerRobert Ancell <robert.ancell@canonical.com>2014-05-02 10:50:35 +1200
commit482f21f1383416636123fb9831fda1d1dbbb8b35 (patch)
treec3b6577120de6eb925baa22f003f1a4c1568e8d3
parent77e9f82042744a691e27af52cb12ee26dd86331c (diff)
downloadnautilus-482f21f1383416636123fb9831fda1d1dbbb8b35.tar.gz
application: Add missing unref for NautilusFile used in network connections.
This was introduced in commit 95d42ea01f7f9c60210b415554e7bbf6f4e1b334 and released in 3.5.91. The error meant that when a network location was disconnected the next time you connected to it you would get the old NautilusFile object that was marked as "gone" and hit an assertion. https://bugzilla.gnome.org/show_bug.cgi?id=708282
-rw-r--r--src/nautilus-application.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 6c8451eaa..616e00a65 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -785,6 +785,7 @@ go_to_server_cb (NautilusWindow *window,
g_bookmark_file_to_file (bookmarks, filename, NULL);
}
+ nautilus_file_unref (file);
g_free (filename);
g_bookmark_file_free (bookmarks);