mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix from wtc/kai for unsafe macro parameter (366869, r=me).
This commit is contained in:
parent
216e1db43f
commit
50babdd79e
@ -78,8 +78,12 @@ js_ThreadDestructorCB(void *ptr)
|
||||
|
||||
if (!thread)
|
||||
return;
|
||||
while (!JS_CLIST_IS_EMPTY(&thread->contextList))
|
||||
JS_REMOVE_AND_INIT_LINK(thread->contextList.next);
|
||||
while (!JS_CLIST_IS_EMPTY(&thread->contextList)) {
|
||||
/* NB: must use a temporary, as the macro evaluates its actual twice. */
|
||||
JSCList *link = thread->contextList.next;
|
||||
|
||||
JS_REMOVE_AND_INIT_LINK(link);
|
||||
}
|
||||
GSN_CACHE_CLEAR(&thread->gsnCache);
|
||||
free(thread);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user