pidgin: 1128e885: let's not leak if nothing is changed
khc at pidgin.im
khc at pidgin.im
Sun Jul 6 13:30:43 EDT 2008
-----------------------------------------------------------------
Revision: 1128e8852303548fa7e11f94813fb137fde16744
Ancestor: 1cdb28c0cf61decef2a61d7b72e8890425a4f377
Author: khc at pidgin.im
Date: 2008-07-06T17:24:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1128e8852303548fa7e11f94813fb137fde16744
Modified files:
libpurple/protocols/jabber/presence.c
ChangeLog:
let's not leak if nothing is changed
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c 3189dae16b40681279ad700a31da4e81e649af97
+++ libpurple/protocols/jabber/presence.c 1bb6fa1483cacef7ba9da2c4f3dcecff39c2eeb3
@@ -178,9 +178,9 @@ void jabber_presence_send(PurpleAccount
js->old_avatarhash = g_strdup(js->avatar_hash);
js->old_state = state;
js->old_priority = priority;
- g_free(stripped);
}
-
+ g_free(stripped);
+
/* next, check if there are any changes to the tune values */
tune = purple_presence_get_status(p, "tune");
if (tune && purple_status_is_active(tune)) {
More information about the Commits
mailing list