[gvfs/gnome-2-28] Set variable to NULL after unreffing



commit 13666413d70a90cfaf49ce4e0ba3e5de4667291f
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jan 20 13:23:00 2010 +0100

    Set variable to NULL after unreffing
    
    Fixes an assertion that triggers later when finalizing the backend
    object.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=555543

 daemon/gvfsbackendarchive.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendarchive.c b/daemon/gvfsbackendarchive.c
index 92758bb..43fe999 100644
--- a/daemon/gvfsbackendarchive.c
+++ b/daemon/gvfsbackendarchive.c
@@ -590,6 +590,7 @@ do_unmount (GVfsBackend *backend,
   GVfsBackendArchive *ba = G_VFS_BACKEND_ARCHIVE (backend);
 
   g_object_unref (ba->file);
+  ba->file = NULL;
   archive_file_free (ba->files);
   ba->files = NULL;
 



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