Fixed potential random crash after installing more than 16 frame callbacks at once.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4221 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
a42e42cde9
commit
8be644228d
@ -332,7 +332,7 @@ static BOOL GrowCallbackList(JSContext *context, NSString **errorString)
|
||||
{
|
||||
// If we can't root them all, we fail; unroot all entries to date, free the buffer and return NO.
|
||||
OOUInteger j;
|
||||
for (j = 0; i < i; j++)
|
||||
for (j = 0; j < i; j++)
|
||||
{
|
||||
JS_RemoveValueRoot(context, &newCallbacks[j].callback);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user