Mercurial > pidgin.yaz
changeset 13973:9c0885611b27
[gaim-migrate @ 16531]
I see a lot of crashes from callbacks (mostly originating in proxy.c code) that end up crashing in gaim_connection_error() because the connection is invalid.
Added a g_return_if_fail() on the connection being valid to protect against that condition as well as log it.
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Thu, 20 Jul 2006 18:32:09 +0000 |
parents | 69496f235130 |
children | e757e5d04846 |
files | src/connection.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/connection.c Thu Jul 20 17:54:08 2006 +0000 +++ b/src/connection.c Thu Jul 20 18:32:09 2006 +0000 @@ -423,6 +423,7 @@ GaimConnectionUiOps *ops; g_return_if_fail(gc != NULL); + g_return_if_fail(GAIM_CONNECTION_IS_VALID(gc)); g_return_if_fail(text != NULL); /* If we've already got one error, we don't need any more */