diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2013-11-05 07:29:51 +0200 |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2013-11-07 16:33:31 +0200 |
commit | 218eb4c46633948ec590922f95368410072dd8e9 (patch) | |
tree | 80f19ca0edbba1c0ace4b236a2090c31d287bdd1 | |
parent | 1de81a47282e9dcf665237f0a508465e9d1f29a0 (diff) | |
download | gvfs-218eb4c46633948ec590922f95368410072dd8e9.tar.gz |
client: Fix SIGSEGV in fallback copy
If the daemon is killed during the fallback copy, it is possible that
proxy is NULL which causes a segfault when unrefing it. Use
g_clear_object() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=711454
-rw-r--r-- | client/gdaemonfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c index 48c7c82d..f5d28c49 100644 --- a/client/gdaemonfile.c +++ b/client/gdaemonfile.c @@ -2964,7 +2964,7 @@ retry: if (g_error_matches (my_error, G_VFS_ERROR, G_VFS_ERROR_RETRY)) { g_clear_error (&my_error); - g_object_unref (proxy); + g_clear_object (&proxy); goto retry; } _g_propagate_error_stripped (error, my_error); |