diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 01:51:24 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 01:51:24 +0800 |
commit | 3245c197d95c326372323addde9f62ca96167a33 (patch) | |
tree | 470fd6e0810e3928243a8760b09e84b7bc5c5c3c /src | |
parent | f51d76329d1f2994c450aa0c8bf3a37412512581 (diff) | |
download | gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar.gz gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar.bz2 gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar.lz gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar.xz gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.tar.zst gsoc2013-empathy-3245c197d95c326372323addde9f62ca96167a33.zip |
Fix a small memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-import-pidgin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c index 5c8221ce7..6a145ff93 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); |