GAsyncInitable: Fix leaked object when using _newv_async

This commit is contained in:
Xavier Claessens 2015-07-08 14:38:16 -04:00
parent 7ed76a4eca
commit dafc454e70

View File

@ -381,6 +381,7 @@ g_async_initable_newv_async (GType object_type,
g_async_initable_init_async (G_ASYNC_INITABLE (obj),
io_priority, cancellable,
callback, user_data);
g_object_unref (obj); /* Passed ownership to async call */
}
/**