changeset 32537:c6d0ca15925e

Fix a leak in the Plugin Information window. These variables are set in the loop and should be freed there as well.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 23 Feb 2012 04:05:51 +0000
parents 017908d13526
children c525ec501589
files pidgin/gtkdialogs.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdialogs.c	Mon Feb 20 23:52:41 2012 +0000
+++ b/pidgin/gtkdialogs.c	Thu Feb 23 04:05:51 2012 +0000
@@ -824,14 +824,15 @@
 				pver, pwebsite, pid,
 				punloadable ? "<FONT COLOR=\"#FF0000\"><B>No</B></FONT>" : "Yes",
 				ploaded ? "Yes" : "No");
+
+		g_free(pname);
+		g_free(pauthor);
 	}
 
 	plugins_info = pidgin_build_help_dialog(title, "plugins_info", str);
 	g_signal_connect(G_OBJECT(plugins_info), "destroy",
 			G_CALLBACK(gtk_widget_destroyed), &plugins_info);
 	g_free(title);
-	g_free(pname);
-	g_free(pauthor);
 }
 
 static void