mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142717, part 4 - Add MOZ_COUNT_CTOR/DTOR for XPCWrappedNativeTearOff. r=bholley
This commit is contained in:
parent
f66e0a7b52
commit
57d42f4866
@ -521,6 +521,7 @@ void XPCWrappedNativeTearOff::JSObjectMoved(JSObject *obj, const JSObject *old)
|
||||
inline
|
||||
XPCWrappedNativeTearOff::~XPCWrappedNativeTearOff()
|
||||
{
|
||||
MOZ_COUNT_DTOR(XPCWrappedNativeTearOff);
|
||||
MOZ_ASSERT(!(GetInterface() || GetNative() || GetJSObjectPreserveColor()),
|
||||
"tearoff not empty in dtor");
|
||||
}
|
||||
|
@ -1961,7 +1961,10 @@ public:
|
||||
void JSObjectMoved(JSObject *obj, const JSObject *old);
|
||||
|
||||
XPCWrappedNativeTearOff()
|
||||
: mInterface(nullptr), mJSObject(nullptr) {}
|
||||
: mInterface(nullptr), mJSObject(nullptr)
|
||||
{
|
||||
MOZ_COUNT_CTOR(XPCWrappedNativeTearOff);
|
||||
}
|
||||
~XPCWrappedNativeTearOff();
|
||||
|
||||
// NOP. This is just here to make the AutoMarkingPtr code compile.
|
||||
|
Loading…
Reference in New Issue
Block a user