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



commit ab1ad678ba8cf463ca9581623c4d078711a76fb6
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 2 10:23:00 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 1900e90..993186f 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -772,6 +772,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]