[gvfs/gnome-3-8] client: Fix SIGSEGV in fallback copy
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-3-8] client: Fix SIGSEGV in fallback copy
- Date: Wed, 13 Nov 2013 12:28:00 +0000 (UTC)
commit 4e9e6f85f951412e269e35c47488c527fded007d
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Tue Nov 5 07:29:51 2013 +0200
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
client/gdaemonfile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 75e9053..e60b929 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -2965,7 +2965,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]