summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2009-12-24 11:28:14 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-02-18 14:35:55 -0500
commita9a6f53a6b73f44ed1ca769e2a1005df08f48dea (patch)
treef2f50c6da75fd0adc492968aeb09ec7b770713ea /src
parent085cf5e6907bf150a3d68d036a1d58889f963272 (diff)
downloadtelepathy-gabble-a9a6f53a6b73f44ed1ca769e2a1005df08f48dea.tar.gz
Mail Notification: Fix memory leak on subcribe while already subscribed
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/conn-mail-notif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conn-mail-notif.c b/src/conn-mail-notif.c
index e6245c789..fa06941f3 100644
--- a/src/conn-mail-notif.c
+++ b/src/conn-mail-notif.c
@@ -125,6 +125,7 @@ gabble_mail_notification_subscribe (GabbleSvcConnectionInterfaceMailNotification
if (g_hash_table_lookup_extended (conn->mail_subscribers, sender, NULL, NULL))
{
DEBUG ("Sender '%s' is already subscribed!", sender);
+ g_free (sender);
goto done;
}