[mw-devel] MW3 r1036 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Mon Apr 21 06:33:56 BST 2008


Author: psycodom
Date: 2008-04-21 06:33:55 +0100 (Mon, 21 Apr 2008)
New Revision: 1036

Modified:
   trunk/src/js.c
Log:
Fixes a small bug in mw-jscript that caused js_timeout_event->how tp be set to NULL when js_timeout_event had already been freed in alarm.c


Modified: trunk/src/js.c
===================================================================
--- trunk/src/js.c	2008-04-18 13:04:05 UTC (rev 1035)
+++ trunk/src/js.c	2008-04-21 05:33:55 UTC (rev 1036)
@@ -117,6 +117,7 @@
 	if(js_timeout_event != NULL)
 	{
 		js_timeout_event->how = NULL;
+		js_timeout_event = NULL; // freed by the alarm functions so we just need to unset it here
 	}
 }
 





More information about the mw-devel mailing list