Mercurial > pidgin.yaz
diff src/protocols/simple/simple.c @ 13398:bddf037063bd
[gaim-migrate @ 15772]
These shouldn't be dereferenced before the NULL check.
Resolves CID 73
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 06 Mar 2006 16:57:34 +0000 |
parents | 955a24d87729 |
children | dc28bca6a7b5 |
line wrap: on
line diff
--- a/src/protocols/simple/simple.c Mon Mar 06 13:08:44 2006 +0000 +++ b/src/protocols/simple/simple.c Mon Mar 06 16:57:34 2006 +0000 @@ -1615,10 +1615,11 @@ { struct simple_account_data *sip = gc->proto_data; - /* unregister */ - do_register_exp(sip, 0); - connection_free_all(sip); if(sip) { + /* unregister */ + do_register_exp(sip, 0); + connection_free_all(sip); + g_free(sip->servername); g_free(sip->username); g_free(sip->password);