Mercurial > pidgin
changeset 27068:faed0a042558
merge of '592b4775fc1de5871564f3b61637c8f5776a3932'
and '84f6765b71f2ad2d6c7cddd461114ab5fc758b72'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 07 Jun 2009 08:13:14 +0000 |
parents | 01c91af62ab3 (diff) b9c64694999d (current diff) |
children | 08f5c5b12e7c |
files | |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c Sun Jun 07 08:07:20 2009 +0000 +++ b/libpurple/protocols/jabber/buddy.c Sun Jun 07 08:13:14 2009 +0000 @@ -69,7 +69,7 @@ gboolean create) { JabberBuddy *jb; - const char *realname; + char *realname; if (js->buddies == NULL) return NULL; @@ -81,8 +81,9 @@ if(!jb && create) { jb = g_new0(JabberBuddy, 1); - g_hash_table_insert(js->buddies, g_strdup(realname), jb); - } + g_hash_table_insert(js->buddies, realname, jb); + } else + g_free(realname); return jb; }