From: <ev...@us...> - 2006-07-20 18:32:16
|
Revision: 16531 Author: evands Date: 2006-07-20 11:32:09 -0700 (Thu, 20 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16531&view=rev Log Message: ----------- 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. Modified Paths: -------------- trunk/src/connection.c Modified: trunk/src/connection.c =================================================================== --- trunk/src/connection.c 2006-07-20 17:54:08 UTC (rev 16530) +++ trunk/src/connection.c 2006-07-20 18:32:09 UTC (rev 16531) @@ -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 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |