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:
Niels De Graef 2023-05-16 21:12:42 +00:00
commit e3ac5f762b

View File

@ -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);