diff --git a/gfx/layers/ipc/ImageBridgeChild.cpp b/gfx/layers/ipc/ImageBridgeChild.cpp index f8cbe127d11..a2172c537db 100644 --- a/gfx/layers/ipc/ImageBridgeChild.cpp +++ b/gfx/layers/ipc/ImageBridgeChild.cpp @@ -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()