changeset 26243:0a1f7bff1ddd

Apply Paul's second patch to fix some memory leaks found in valgrind. References #8786.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 30 Mar 2009 05:50:34 +0000
parents b0a91fc541e0
children 5e5494482f01
files libpurple/protocols/oscar/oscar.c pidgin/gtkutils.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}
 }
 
--- 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))
 	{