Bug 1336510 - Part 10: Remove unnecessary assertion from SharedRef::Clear(), r=aklotz
authorMichael Layzell <michael@thelayzells.com>
Fri, 24 Feb 2017 14:32:07 -0500
changeset 373846 a15e49742ebdaf10c98520fbaa1676bb6c142ccd
parent 373845 e83d73a055fe4a8f28f90ac54a659d4a36a3eb0d
child 373847 21643634694ece74eba865eb086da336fedf9ba2
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs1336510
milestone54.0a1
Bug 1336510 - Part 10: Remove unnecessary assertion from SharedRef::Clear(), r=aklotz MozReview-Commit-ID: Fx7CmxgiJpo
ipc/mscom/WeakRef.cpp
--- a/ipc/mscom/WeakRef.cpp
+++ b/ipc/mscom/WeakRef.cpp
@@ -66,17 +66,16 @@ SharedRef::Resolve(REFIID aIid, void** a
 
   return strongRef->QueryInterface(aIid, aOutStrongReference);
 }
 
 void
 SharedRef::Clear()
 {
   AutoCriticalSection lock(&mCS);
-  MOZ_ASSERT(mSupport);
   mSupport = nullptr;
 }
 
 } // namespace detail
 
 typedef BaseAutoLock<detail::SharedRef> SharedRefAutoLock;
 typedef BaseAutoUnlock<detail::SharedRef> SharedRefAutoUnlock;