mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-03-11 19:46:38 +00:00
Merge branch 'mcatanzaro/cancellable-regression' into 'master'
file-backend: avoid critical when cancellable is unset See merge request GNOME/libsecret!120
This commit is contained in:
commit
e3ac5f762b
@ -581,6 +581,7 @@ secret_file_backend_real_init_async (GAsyncInitable *initable,
|
|||||||
init = g_new0 (InitClosure, 1);
|
init = g_new0 (InitClosure, 1);
|
||||||
init->io_priority = io_priority;
|
init->io_priority = io_priority;
|
||||||
init->file = file;
|
init->file = file;
|
||||||
|
if (cancellable)
|
||||||
init->cancellable = g_object_ref (cancellable);
|
init->cancellable = g_object_ref (cancellable);
|
||||||
g_task_set_task_data (task, init, init_closure_free);
|
g_task_set_task_data (task, init, init_closure_free);
|
||||||
g_bus_get (G_BUS_TYPE_SESSION, cancellable, on_bus_get, task);
|
g_bus_get (G_BUS_TYPE_SESSION, cancellable, on_bus_get, task);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user