libmm-glib,manager: avoid unref of unset cancellables
This commit is contained in:
@@ -486,6 +486,7 @@ init_async_context_free (InitAsyncContext *ctx)
|
|||||||
{
|
{
|
||||||
g_object_unref (ctx->manager);
|
g_object_unref (ctx->manager);
|
||||||
g_object_unref (ctx->result);
|
g_object_unref (ctx->result);
|
||||||
|
if (ctx->cancellable)
|
||||||
g_object_unref (ctx->cancellable);
|
g_object_unref (ctx->cancellable);
|
||||||
g_free (ctx);
|
g_free (ctx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user