# HG changeset patch # User Elliott Sales de Andrade # Date 1238392234 0 # Node ID 0a1f7bff1dddd15e5caae4976dceaf1f92b83936 # Parent b0a91fc541e046110e4778638d64136b98852699 Apply Paul's second patch to fix some memory leaks found in valgrind. References #8786. diff -r b0a91fc541e0 -r 0a1f7bff1ddd libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Sat Mar 28 07:31:29 2009 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Mar 30 05:50:34 2009 +0000 @@ -4847,6 +4847,7 @@ /* TODO: Combine these two calls! */ aim_srv_setextrainfo(od, FALSE, 0, TRUE, status_text, itmsurl); oscar_set_extendedstatus(gc); + g_free(status_text); } } diff -r b0a91fc541e0 -r 0a1f7bff1ddd pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sat Mar 28 07:31:29 2009 +0000 +++ b/pidgin/gtkutils.c Mon Mar 30 05:50:34 2009 +0000 @@ -3578,7 +3578,9 @@ if (tmp == NULL) return FALSE; + g_free(tmp); tmp = NULL; + if (!g_spawn_command_line_sync("gconftool-2 --all-dirs /desktop/gnome/url-handlers", &tmp, &err, NULL, NULL)) {