[telepathy-mission-control/telepathy-mission-control-5.2] Don't leak automatic presence status when loading accounts
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Sep 17 11:39:16 PDT 2009
Impact: small leak once per McdAccount loaded or created
---
src/mcd-account.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mcd-account.c b/src/mcd-account.c
index 62850f9..2fcb200 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1957,10 +1957,12 @@ mcd_account_setup (McdAccount *account)
if (!_presence_type_is_online (priv->auto_presence_type))
{
priv->auto_presence_type = TP_CONNECTION_PRESENCE_TYPE_AVAILABLE;
+ g_free (priv->auto_presence_status);
priv->auto_presence_status = g_strdup ("available");
}
else
{
+ g_free (priv->auto_presence_status);
priv->auto_presence_status =
g_key_file_get_string (priv->keyfile, priv->unique_name,
MC_ACCOUNTS_KEY_AUTO_PRESENCE_STATUS,
--
1.5.6.5
More information about the telepathy-commits
mailing list