libmm-glib,manager: avoid unref of unset cancellables

This commit is contained in:
Aleksander Morgado
2012-11-07 10:01:03 +01:00
parent 11db2ea380
commit 94d62146e3

View File

@@ -486,7 +486,8 @@ 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);
g_object_unref (ctx->cancellable); if (ctx->cancellable)
g_object_unref (ctx->cancellable);
g_free (ctx); g_free (ctx);
} }