[gvfs/wip/oholy/gtask: 1/19] gvfsiconloadable: Duplicate caller's error



commit 2593755d965adbfb42cf9fd7f44a148887d8cd47
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Dec 12 09:46:17 2016 +0100

    gvfsiconloadable: Duplicate caller's error
    
    The caller's error is not duplicated since the commit 811aace. It might
    cause segfaults, because gvfsdaemonvfs is not modified appropriately.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747412

 client/gvfsiconloadable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/gvfsiconloadable.c b/client/gvfsiconloadable.c
index 2de6df8..517004d 100644
--- a/client/gvfsiconloadable.c
+++ b/client/gvfsiconloadable.c
@@ -223,7 +223,7 @@ async_got_mount_info (GMountInfo *mount_info,
   if (error != NULL)
     {
       g_dbus_error_strip_remote_error (error);
-      g_task_return_error (data->task, error);
+      g_task_return_error (data->task, g_error_copy (error));
       async_path_call_free (data);
       return;
     }


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