From c070df9026a957cf297daea85117806b30677580 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 9 Jun 2014 15:50:04 +0200 Subject: [PATCH 3/3] mcd-account: unregister the account once we're done deleting it The McdAccount object may still be alive for a short while because of pending async operations. We want to get rid of the D-Bus object as soon as possible and so, for example, a new Account object replacing the deleted one can be created. Fix https://bugs.freedesktop.org/show_bug.cgi?id=79827 --- src/mcd-account.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mcd-account.c b/src/mcd-account.c index c745aeb..11091f6 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -656,6 +656,8 @@ mcd_account_delete_async (McdAccount *account, tp_svc_account_emit_removed (account); } + unregister_dbus_service (account); + g_task_return_boolean (task, TRUE); g_object_unref (task); } -- 1.9.3