changeset 5695:e42535701e25

[gaim-migrate @ 6116] GaimAccount now has ownership of a GaimProxyInfo. When a new one is set, the old one is destroyed. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 03 Jun 2003 08:44:12 +0000
parents 2d0d96c5a7a7
children 0a20c8e1d2ca
files src/account.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Tue Jun 03 07:44:42 2003 +0000
+++ b/src/account.c	Tue Jun 03 08:44:12 2003 +0000
@@ -302,6 +302,9 @@
 {
 	g_return_if_fail(account != NULL);
 
+	if (account->proxy_info != NULL)
+		gaim_proxy_info_destroy(account->proxy_info);
+
 	account->proxy_info = info;
 
 	schedule_accounts_save();