changeset 5241:a3bb756635be

[gaim-migrate @ 5612] more memleak fixen committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 27 Apr 2003 17:33:10 +0000
parents a75c799e3db7
children fd81a00480ac
files src/dialogs.c src/gtkblist.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Sun Apr 27 17:10:02 2003 +0000
+++ b/src/dialogs.c	Sun Apr 27 17:33:10 2003 +0000
@@ -1309,6 +1309,7 @@
 			g_signal_connect(G_OBJECT(entry), "activate",
 					G_CALLBACK(do_add_chat), ac);
 		}
+		g_free(pce);
 	}
 
 	gtk_widget_show_all(ac->entries_box);
--- a/src/gtkblist.c	Sun Apr 27 17:10:02 2003 +0000
+++ b/src/gtkblist.c	Sun Apr 27 17:33:10 2003 +0000
@@ -775,7 +775,7 @@
 			name = g_markup_escape_text(chat->alias, -1);
 		} else {
 			struct proto_chat_entry *pce;
-			GList *parts;
+			GList *parts, *tmp;
 			prpl = gaim_find_prpl(chat->account->protocol);
 			prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl);
 
@@ -783,6 +783,8 @@
 			pce = parts->data;
 			name = g_markup_escape_text(g_hash_table_lookup(chat->components,
 						pce->identifier), -1);
+			for(tmp = parts; tmp; tmp = tmp->next)
+				g_free(tmp->data);
 			g_list_free(parts);
 		}
 
@@ -1713,12 +1715,14 @@
 			name = g_markup_escape_text(chat->alias, -1);
 		} else {
 			struct proto_chat_entry *pce;
-			GList *parts;
+			GList *parts, *tmp;
 
 			parts = GAIM_PLUGIN_PROTOCOL_INFO(chat->account->gc->prpl)->chat_info(chat->account->gc);
 			pce = parts->data;
 			name = g_markup_escape_text(g_hash_table_lookup(chat->components,
 						pce->identifier), -1);
+			for(tmp = parts; tmp; tmp = tmp->next)
+				g_free(tmp->data);
 			g_list_free(parts);
 		}