From e75d563da7ee9bffe672cecce50798ace9552be3 Mon Sep 17 00:00:00 2001 From: Milan Sreckovic Date: Wed, 17 Jun 2015 10:33:00 -0400 Subject: [PATCH] Bug 1175521 - Posting to a dead loop. r=nical --- gfx/layers/ipc/CompositorParent.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/layers/ipc/CompositorParent.cpp b/gfx/layers/ipc/CompositorParent.cpp index 7c1ef323ed5..c1141d77e17 100644 --- a/gfx/layers/ipc/CompositorParent.cpp +++ b/gfx/layers/ipc/CompositorParent.cpp @@ -1550,7 +1550,10 @@ CompositorParent::DeallocateLayerTreeId(uint64_t aId) // Here main thread notifies compositor to remove an element from // sIndirectLayerTrees. This removed element might be queried soon. // Checking the elements of sIndirectLayerTrees exist or not before using. - MOZ_ASSERT(CompositorLoop()); + if (!CompositorLoop()) { + gfxCriticalError() << "Attempting to post to a invalid Compositor Loop"; + return; + } CompositorLoop()->PostTask(FROM_HERE, NewRunnableFunction(&EraseLayerState, aId)); }