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



commit f0b6b8da21da288365d8ac030081f63dc385eb43
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 8bd0d90..3a80924 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]