diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-15 16:31:21 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:33 +0000 |
commit | 50247324010cbe6fb9495db71f1feccbc517cdea (patch) | |
tree | a377ea95fc52ab79e11e2de0851d87f803a4db61 | |
parent | ec5def2cdb05891f7d233a7039a1a94d2315040c (diff) |
McdStorage: don't forget accounts until the McpAccountStorage says so
We shouldn't remove it from the hash table until the storage plugin
says ::deleted: until then, deletion could fail. This will become
significant when we start considering deletion of a deleted account to
be an error.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
-rw-r--r-- | src/mcd-storage.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mcd-storage.c b/src/mcd-storage.c index 66fbd826..ba8420a6 100644 --- a/src/mcd-storage.c +++ b/src/mcd-storage.c @@ -1816,15 +1816,11 @@ mcd_storage_delete_account (McdStorage *self, return; } - g_object_ref (plugin); - g_hash_table_remove (self->accounts, account); /* FIXME: stop ignoring the error (if any), and make this method async * in order to pass the error up to McdAccount */ mcp_account_storage_delete_async (plugin, ma, account, NULL, delete_cb, g_strdup (account)); - - g_object_unref (plugin); } /* |