Bug 1037754: Must always use SyncRunnable for DISPATCH_SYNC on non-nsThreads or risk leaks r=drno

This commit is contained in:
Randell Jesup 2014-07-17 03:08:38 -04:00
Родитель 3bf8efc62d
Коммит e1e445ccda
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -267,9 +267,8 @@ bool VcmSIPCCBinding::scanForGmpCodecs()
return false;
}
// presumes that all GMP dir scans have been queued for the GMPThread
RUN_ON_THREAD(thread,
WrapRunnableNM(&GMPDummy),
NS_DISPATCH_SYNC);
mozilla::SyncRunnable::DispatchToThread(thread,
WrapRunnableNM(&GMPDummy));
return true;
}