# HG changeset patch # User Evan Schoenberg # Date 1153420329 0 # Node ID 9c0885611b2744b310de41f16a92ecfad96456bd # Parent 69496f235130fb72fcded917f65308281fc2acf0 [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 diff -r 69496f235130 -r 9c0885611b27 src/connection.c --- 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 */