|
From: <ev...@us...> - 2007-02-14 14:22:11
|
Revision: 18190
http://svn.sourceforge.net/gaim/?rev=18190&view=rev
Author: evands
Date: 2007-02-14 06:22:06 -0800 (Wed, 14 Feb 2007)
Log Message:
-----------
Stu pointed out that this still needed to be g_strdup()'d because jabber_normalize returns a static buffer
Modified Paths:
--------------
trunk/libgaim/protocols/jabber/roster.c
Modified: trunk/libgaim/protocols/jabber/roster.c
===================================================================
--- trunk/libgaim/protocols/jabber/roster.c 2007-02-13 22:21:30 UTC (rev 18189)
+++ trunk/libgaim/protocols/jabber/roster.c 2007-02-14 14:22:06 UTC (rev 18190)
@@ -176,11 +176,12 @@
char *jid_norm;
const char *username;
- jid_norm = jabber_normalize(js->gc->account, jid);
+ jid_norm = g_strdup(jabber_normalize(js->gc->account, jid));
username = gaim_account_get_username(js->gc->account);
me = g_utf8_collate(jid_norm,
jabber_normalize(js->gc->account,
username));
+ g_free(jid_norm);
if(me == 0)
jb->subscription = JABBER_SUB_BOTH;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|