diff src/protocols/msn/cmdproc.c @ 10284:f776e117c17b

[gaim-migrate @ 11454] Several MSN memory leaks identified and fixed by Miah Gregory and Felipe Contreras, plus my own fix for bug 1075347. As normal, thank them for fixes, blame me for breakages. Did I mention the new MSN icon? It rocks! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 01 Dec 2004 02:30:47 +0000
parents ecf3ce2e2ab1
children 926bd0e5f487
line wrap: on
line diff
--- a/src/protocols/msn/cmdproc.c	Wed Dec 01 01:17:46 2004 +0000
+++ b/src/protocols/msn/cmdproc.c	Wed Dec 01 02:30:47 2004 +0000
@@ -116,6 +116,9 @@
 
 	data = msn_transaction_to_string(trans);
 
+	if (cmdproc->last_trans != NULL)
+		g_free(cmdproc->last_trans);
+
 	cmdproc->last_trans = g_strdup(data);
 
 	len = strlen(data);