core/smn_timers.cpp
changeset 1409 84e9d3494603
parent 1407 bb6516a50eea
child 1412 a2ca3d22dd71
     1.1 --- a/core/smn_timers.cpp	Tue Sep 11 18:08:49 2007 +0000
     1.2 +++ b/core/smn_timers.cpp	Tue Sep 11 18:16:25 2007 +0000
     1.3 @@ -181,6 +181,13 @@
     1.4  
     1.5  	pInfo = s_TimerNatives.CreateTimerInfo();
     1.6  	pTimer = g_Timers.CreateTimer(&s_TimerNatives, sp_ctof(params[1]), pInfo, flags);
     1.7 +
     1.8 +	if (!pTimer)
     1.9 +	{
    1.10 +		s_TimerNatives.DeleteTimerInfo(pInfo);
    1.11 +		return 0;
    1.12 +	}
    1.13 +
    1.14  	hndl = g_HandleSys.CreateHandle(g_TimerType, pInfo, pCtx->GetIdentity(), g_pCoreIdent, NULL);
    1.15  
    1.16  	pInfo->UserData = params[3];