From 3245c197d95c326372323addde9f62ca96167a33 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 21 Aug 2009 18:51:24 +0100 Subject: [PATCH] Fix a small memory leak --- src/empathy-import-pidgin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c index 5c8221ce..6a145ff9 100644 --- a/src/empathy-import-pidgin.c +++ b/src/empathy-import-pidgin.c @@ -209,12 +209,12 @@ empathy_import_pidgin_load (void) if (g_str_has_prefix (protocol, "prpl-")) protocol += 5; - data->protocol = g_strdup (protocol); - - if (!tp_strdiff (data->protocol, PIDGIN_PROTOCOL_BONJOUR)) - data->protocol = "salut"; - else if (!tp_strdiff (data->protocol, PIDGIN_PROTOCOL_NOVELL)) - data->protocol = "groupwise"; + if (!tp_strdiff (protocol, PIDGIN_PROTOCOL_BONJOUR)) + data->protocol = g_strdup ("salut"); + else if (!tp_strdiff (protocol, PIDGIN_PROTOCOL_NOVELL)) + data->protocol = g_strdup ("groupwise"); + else + data->protocol = g_strdup (protocol); xmlFree (content); -- 2.39.2