changeset 5942:d0320de18feb

[gaim-migrate @ 6382] Another leakbug fixed! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 22 Jun 2003 17:08:52 +0000
parents a3e60ff95b7d
children a4f2aba0848d
files src/account.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Sun Jun 22 17:03:03 2003 +0000
+++ b/src/account.c	Sun Jun 22 17:08:52 2003 +0000
@@ -839,6 +839,10 @@
 		}
 		else {
 			data->account = gaim_account_new(buffer, data->protocol);
+
+			if (data->account->protocol_id != NULL)
+				g_free(data->account->protocol_id);
+
 			data->account->protocol_id = data->protocol_id;
 
 			gaim_accounts_add(data->account);