[nautilus/gnome-3-6] application: Add missing unref for NautilusFile used in network connections.



commit 444fc42b567e54d28ad297808311ce58cd625662
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 2 10:26:44 2014 +1200

    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

 src/nautilus-application.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 2309a86..c36fb26 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -753,6 +753,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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]