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:32:29 +0200 |
commit | 74e284c7f1bd3377d27250755b3c2fad5a2aa5c8 (patch) | |
tree | e9e667ed493b1c1d665f7b26f9b7c7c0493226c6 /client | |
parent | 5d87cd17ee31cf4fd0ea3a5a620960c925269992 (diff) | |
download | gvfs-74e284c7f1bd3377d27250755b3c2fad5a2aa5c8.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
Diffstat (limited to 'client')
-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 58c9cf96..267ceaa3 100644 --- a/client/gdaemonfile.c +++ b/client/gdaemonfile.c @@ -2969,7 +2969,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); |