[telepathy-mission-control/master] mcd_account_setup: don't leak the automatic presence message

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Sep 17 10:59:54 PDT 2009


Impact: g_strdup ("") is leaked once per McdAccount loaded or created,
once per process
---
 src/mcd-account.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mcd-account.c b/src/mcd-account.c
index c16fd9d..62850f9 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1967,6 +1967,7 @@ mcd_account_setup (McdAccount *account)
                                    NULL);
     }
 
+    g_free (priv->auto_presence_message);
     priv->auto_presence_message =
 	g_key_file_get_string (priv->keyfile, priv->unique_name,
 			       MC_ACCOUNTS_KEY_AUTO_PRESENCE_MESSAGE,
-- 
1.5.6.5




More information about the telepathy-commits mailing list