Skip to content
Snippets Groups Projects
Commit 54043e26 authored by rswindell's avatar rswindell
Browse files

Bug-fix: double-free in Queue finalizer (q is already freed in msgQueueDetach).

parent fb764495
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ static void js_finalize_queue(JSContext *cx, JSObject *obj)
return;
if(msgQueueDetach(q)==0 && (n=listFindNode(&named_queues,q,/* length=0 for ptr compare */0))!=NULL)
listRemoveNode(&named_queues,n,TRUE);
listRemoveNode(&named_queues,n,FALSE);
JS_SetPrivate(cx, obj, NULL);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment