This manager uses to be always alive but that's not longer tree since we
splitted the chat client (#633329).
{
DEBUG ("Failed to prepare account manager: %s", error->message);
g_error_free (error);
- return;
+ goto out;
}
chatroom_manager_get_all (self);
+
+out:
+ g_object_unref (self);
}
static GObject *
priv->account_manager = tp_account_manager_dup ();
tp_account_manager_prepare_async (priv->account_manager, NULL,
- account_manager_ready_cb, self);
+ account_manager_ready_cb, g_object_ref (self));
if (priv->file == NULL)
{