diff --git a/dom/bindings/CallbackObject.h b/dom/bindings/CallbackObject.h index 548e5b122e7..ae816974d19 100644 --- a/dom/bindings/CallbackObject.h +++ b/dom/bindings/CallbackObject.h @@ -97,8 +97,6 @@ private: // Set mCallback before we hold, on the off chance that a GC could somehow // happen in there... (which would be pretty odd, granted). mCallback = aCallback; - // Make sure we'll be able to drop as needed - nsLayoutStatics::AddRef(); NS_HOLD_JS_OBJECTS(this, CallbackObject); } @@ -108,7 +106,6 @@ protected: if (mCallback) { mCallback = nullptr; NS_DROP_JS_OBJECTS(this, CallbackObject); - nsLayoutStatics::Release(); } }