mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 02:28:53 +00:00
Merge branch 'wip/mcrha/flatpak-use-after-free-fix' into 'master'
secret-file-backend: Fix use-after-free in flatpak See merge request GNOME/libsecret!52
This commit is contained in:
commit
a6c4c92ed0
@ -231,6 +231,11 @@ on_portal_response (GDBusConnection *connection,
|
|||||||
InitClosure *init = g_task_get_task_data (task);
|
InitClosure *init = g_task_get_task_data (task);
|
||||||
guint32 response;
|
guint32 response;
|
||||||
|
|
||||||
|
if (init->cancellable_signal_id) {
|
||||||
|
g_cancellable_disconnect (g_task_get_cancellable (task), init->cancellable_signal_id);
|
||||||
|
init->cancellable_signal_id = 0;
|
||||||
|
}
|
||||||
|
|
||||||
g_dbus_connection_signal_unsubscribe (connection,
|
g_dbus_connection_signal_unsubscribe (connection,
|
||||||
init->portal_signal_id);
|
init->portal_signal_id);
|
||||||
|
|
||||||
@ -303,6 +308,7 @@ on_portal_cancel (GCancellable *cancellable,
|
|||||||
task);
|
task);
|
||||||
|
|
||||||
g_cancellable_disconnect (cancellable, init->cancellable_signal_id);
|
g_cancellable_disconnect (cancellable, init->cancellable_signal_id);
|
||||||
|
init->cancellable_signal_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user