Bug 1267246 - Remove bogus assertion. r?nical draft
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 26 Apr 2016 10:34:11 -0400
changeset 356503 2c3d8ba02d98b5fe4a7ad77712362fff3a66a975
parent 356497 8d62ba5ddb0b41ee4310454c73c5f44384690f37
child 519420 f0183daa9f5a2dce9807b1f6f76d05ec613e397f
push id16532
push userkgupta@mozilla.com
push dateTue, 26 Apr 2016 14:34:45 +0000
reviewersnical
bugs1267246
milestone49.0a1
Bug 1267246 - Remove bogus assertion. r?nical MozReview-Commit-ID: 9RZ2Yx0iu14
gfx/layers/ipc/ShadowLayers.cpp
--- a/gfx/layers/ipc/ShadowLayers.cpp
+++ b/gfx/layers/ipc/ShadowLayers.cpp
@@ -212,18 +212,16 @@ FixedSizeSmallShmemSectionAllocator::Fix
 : mShmProvider(aShmProvider)
 {
   MOZ_ASSERT(mShmProvider);
 }
 
 FixedSizeSmallShmemSectionAllocator::~FixedSizeSmallShmemSectionAllocator()
 {
   ShrinkShmemSectionHeap();
-  // Check if we're not leaking..
-  MOZ_ASSERT(mUsedShmems.empty());
 }
 
 bool
 FixedSizeSmallShmemSectionAllocator::AllocShmemSection(uint32_t aSize, ShmemSection* aShmemSection)
 {
   // For now we only support sizes of 4. If we want to support different sizes
   // some more complicated bookkeeping should be added.
   MOZ_ASSERT(aSize == sSupportedBlockSize);