Bug 1019057 - Add pointer check to ContentClientDoubleBuffered::FinalizeFrame() r=nical
authorSotaro Ikeda <sikeda@mozilla.com>
Wed, 04 Jun 2014 08:21:50 -0700
changeset 186770 5c347ab868414a6e4414079697551ed1c81e027a
parent 186769 7371145721bf2bb322303f1c042634b4ef0468e5
child 186771 ca77e129db835f880c9ffd074d056c812a3b10a8
push id7703
push userkwierso@gmail.com
push dateFri, 06 Jun 2014 02:16:23 +0000
treeherderb2g-inbound@b7d259bda94a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1019057
milestone32.0a1
Bug 1019057 - Add pointer check to ContentClientDoubleBuffered::FinalizeFrame() r=nical
gfx/layers/client/ContentClient.cpp
--- a/gfx/layers/client/ContentClient.cpp
+++ b/gfx/layers/client/ContentClient.cpp
@@ -453,16 +453,19 @@ ContentClientDoubleBuffered::FinalizeFra
     MOZ_ASSERT(locked);
   }
 
   if (!mFrontAndBackBufferDiffer) {
     MOZ_ASSERT(!mDidSelfCopy, "If we have to copy the world, then our buffers are different, right?");
     return;
   }
   MOZ_ASSERT(mFrontClient);
+  if (!mFrontClient) {
+    return;
+  }
 
   MOZ_LAYERS_LOG(("BasicShadowableThebes(%p): reading back <x=%d,y=%d,w=%d,h=%d>",
                   this,
                   mFrontUpdatedRegion.GetBounds().x,
                   mFrontUpdatedRegion.GetBounds().y,
                   mFrontUpdatedRegion.GetBounds().width,
                   mFrontUpdatedRegion.GetBounds().height));