Bug 1019057 - Add pointer check to ContentClientDoubleBuffered::FinalizeFrame() r=nical
authorSotaro Ikeda <sikeda@mozilla.com>
Wed, 04 Jun 2014 08:21:50 -0700
changeset 205869 5c347ab868414a6e4414079697551ed1c81e027a
parent 205868 7371145721bf2bb322303f1c042634b4ef0468e5
child 205870 ca77e129db835f880c9ffd074d056c812a3b10a8
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1019057
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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));