Mercurial > pidgin.yaz
diff src/connection.c @ 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 | 3ae8a3935406 |
children | 8bda65b88e49 |
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 */