Mercurial > pidgin.yaz
diff src/proxy.c @ 6040:80e3641ee9eb
[gaim-migrate @ 6490]
Various minor memleak fixes, and a rephrasing of an oscar error message.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 06 Jul 2003 06:57:42 +0000 |
| parents | 968a00c9f230 |
| children | ef9065e52582 |
line wrap: on
line diff
--- a/src/proxy.c Sun Jul 06 05:07:11 2003 +0000 +++ b/src/proxy.c Sun Jul 06 06:57:42 2003 +0000 @@ -1531,12 +1531,14 @@ { const char *connecthost = host; int connectport = port; - struct PHB *phb = g_new0(struct PHB, 1); + struct PHB *phb; g_return_val_if_fail(host != NULL, -1); g_return_val_if_fail(port != 0 && port != -1, -1); g_return_val_if_fail(func != NULL, -1); + phb = g_new0(struct PHB, 1); + if (account == NULL || gaim_account_get_proxy_info(account) == NULL) phb->gpi = gaim_global_proxy_get_info(); else
