diff options
author | Ondrej Holy <oholy@redhat.com> | 2014-02-13 16:22:39 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2014-02-13 16:29:30 +0100 |
commit | 510a6dcfc74bd412ce478d3a458ddcbbd40f2c2c (patch) | |
tree | 1d95e43697ee27dcded0002083db917336ff2722 | |
parent | 2f112685db58a7ff54361f18917e4769ba677d30 (diff) | |
download | gvfs-510a6dcfc74bd412ce478d3a458ddcbbd40f2c2c.tar.gz |
smb: set context to NULL after it has been freed
https://bugzilla.gnome.org/show_bug.cgi?id=710986
-rw-r--r-- | daemon/gvfsbackendsmb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c index 60659126..a673c59d 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); |