comparison src/account.c @ 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 cee14870644c
comparison
equal deleted inserted replaced
5694:2d0d96c5a7a7 5695:e42535701e25
300 void 300 void
301 gaim_account_set_proxy_info(GaimAccount *account, GaimProxyInfo *info) 301 gaim_account_set_proxy_info(GaimAccount *account, GaimProxyInfo *info)
302 { 302 {
303 g_return_if_fail(account != NULL); 303 g_return_if_fail(account != NULL);
304 304
305 if (account->proxy_info != NULL)
306 gaim_proxy_info_destroy(account->proxy_info);
307
305 account->proxy_info = info; 308 account->proxy_info = info;
306 309
307 schedule_accounts_save(); 310 schedule_accounts_save();
308 } 311 }
309 312