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

Fix bug introduced in previous commit (rev 1.402) of this file:

The js_finalize_queue() is eventually called when garbage is collected and
js_finalize_queue() calls msgQueueDetach(), so bg-load()s did not "leak"
semaphores and this "fix" actually introduced a problem where the queue was
detached too many times, leaving the ref count 0 while there was actually
a lingering reference (in the parent), leading to a crash as reported by echto
(thanks, echto!).
parent 8d9090c4
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,6 @@ static void background_thread(void* arg)
jsrt_Release(bg->runtime);
sem_post(bg->sem);
msgQueueDetach(bg->msg_queue);
free(bg);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment