mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1042379 - Ensure ImageBridgeChild's destructor runs on the main thread. r=nical
This commit is contained in:
parent
4f62652919
commit
3ce788898f
@ -249,6 +249,9 @@ ImageBridgeChild::ImageBridgeChild()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
// Always run destructor on the main thread
|
||||
SetMessageLoopToPostDestructionTo(MessageLoop::current());
|
||||
|
||||
mTxn = new CompositableTransaction();
|
||||
}
|
||||
ImageBridgeChild::~ImageBridgeChild()
|
||||
|
Loading…
Reference in New Issue
Block a user