Bug 1042379 - Ensure ImageBridgeChild's destructor runs on the main thread. r=nical

This commit is contained in:
Jon Morton 2014-07-24 14:12:00 +02:00
parent 4f62652919
commit 3ce788898f

View File

@ -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()