changeset 10276:edf8c0a8e60b

[gaim-migrate @ 11431] Memory leak fixes in plugins, signals committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 29 Nov 2004 04:29:49 +0000
parents d9468bd22b7c
children c9872abd9518
files ChangeLog src/plugin.c src/signals.c
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 28 18:13:18 2004 +0000
+++ b/ChangeLog	Mon Nov 29 04:29:49 2004 +0000
@@ -14,6 +14,7 @@
 	* Smiley selection dialog rewritten to look nicer (Nathan Fredrickson)
 
 	Bug fixes:
+	* Some memory leaks plugged (Miah Gregory, Felipe Contreras)
 	* People using input methods can now use Enter again.
 	* Many problems related to having an IM conversation and a chat open
 	  with the same name (Andrew Hart)
--- a/src/plugin.c	Sun Nov 28 18:13:18 2004 +0000
+++ b/src/plugin.c	Mon Nov 29 04:29:49 2004 +0000
@@ -489,6 +489,8 @@
 gaim_plugin_destroy(GaimPlugin *plugin)
 {
 #ifdef GAIM_PLUGINS
+		if(plugin->path)
+			g_free(plugin->path);
 	g_return_if_fail(plugin != NULL);
 
 	if (gaim_plugin_is_loaded(plugin))
--- a/src/signals.c	Sun Nov 28 18:13:18 2004 +0000
+++ b/src/signals.c	Mon Nov 29 04:29:49 2004 +0000
@@ -104,6 +104,7 @@
 		g_free(signal_data->values);
 	}
 
+	g_free(signal_data->ret_value);
 	g_free(signal_data);
 }