mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +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->io_priority = io_priority;
|
||||
init->file = file;
|
||||
if (cancellable)
|
||||
init->cancellable = g_object_ref (cancellable);
|
||||
g_task_set_task_data (task, init, init_closure_free);
|
||||
g_bus_get (G_BUS_TYPE_SESSION, cancellable, on_bus_get, task);
|
||||
|
Loading…
Reference in New Issue
Block a user