[gvfs] smb: set context to NULL after it has been freed



commit 510a6dcfc74bd412ce478d3a458ddcbbd40f2c2c
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Feb 13 16:22:39 2014 +0100

    smb: set context to NULL after it has been freed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710986

 daemon/gvfsbackendsmb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 6065912..a673c59 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -751,6 +751,7 @@ do_unmount (GVfsBackend *backend,
 
   /* shutdown_ctx = TRUE, "all connections and files will be closed even if they are busy" */
   res = smbc_free_context (op_backend->smb_context, TRUE);
+  op_backend->smb_context = NULL;
   if (res != 0)
     {
       g_vfs_job_failed_from_errno (G_VFS_JOB (job), errno);


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