[gvfs/gnome-3-28] udisks2: Fix crashes caused by missing source tag
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-3-28] udisks2: Fix crashes caused by missing source tag
- Date: Mon, 28 May 2018 06:47:39 +0000 (UTC)
commit 8d428ef4592499ccf4a235dbc750b63fbc9dfa52
Author: Ondrej Holy <oholy redhat com>
Date: Sat May 26 08:16:02 2018 +0200
udisks2: Fix crashes caused by missing source tag
GAsyncReadyCallback is never called from g_drive_stop, because
source_tag is not set, but checked. This obviously causes issues
for client applications. Add missing source_tag.
Closes: https://gitlab.gnome.org/GNOME/gvfs/issues/1
monitor/udisks2/gvfsudisks2drive.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c
index de6840f6..fcceefde 100644
--- a/monitor/udisks2/gvfsudisks2drive.c
+++ b/monitor/udisks2/gvfsudisks2drive.c
@@ -915,6 +915,7 @@ gvfs_udisks2_drive_stop (GDrive *_drive,
GTask *task;
task = g_task_new (drive, cancellable, callback, user_data);
+ g_task_set_source_tag (task, gvfs_udisks2_drive_stop);
/* This information is needed in GVfsDdisks2Volume when apps have
* open files on the device ... we need to know if the button should
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]