# HG changeset patch # User Ka-Hing Cheung # Date 1215365075 0 # Node ID 74960bf43dae206591242cf24d16f5c3c83bd6d0 # Parent 146d16459cda18df15b175c7738a8e8e3373ecb9 let's not leak if nothing is changed diff -r 146d16459cda -r 74960bf43dae libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Sun Jul 06 17:19:27 2008 +0000 +++ b/libpurple/protocols/jabber/presence.c Sun Jul 06 17:24:35 2008 +0000 @@ -178,9 +178,9 @@ 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)) {