changeset 23096:3b54c57749e8

Unleak
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 23 May 2008 13:38:40 +0000
parents 56d958e7b7d1
children 1356d75fd958
files pidgin/gtkplugin.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkplugin.c	Fri May 23 13:08:08 2008 +0000
+++ b/pidgin/gtkplugin.c	Fri May 23 13:38:40 2008 +0000
@@ -421,6 +421,8 @@
 		"<span size=\"smaller\">%s</span>",
 		name, version);
 	gtk_label_set_markup(plugin_name, buf);
+	g_free(name);
+	g_free(version);
 	g_free(buf);
 
 	gtk_text_buffer_set_text(plugin_desc, purple_plugin_get_description(plug), -1);
@@ -694,6 +696,8 @@
 	gtk_label_set_markup(GTK_LABEL(label), _("<b>Filename:</b>"));
 	gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
 
+	g_object_unref(sg);
+
 	return GTK_WIDGET(vbox);
 }