Bug 540868 part 3: when deallocating NPObjects in leakcount builds, let the leak monitor know that we cleaned them up correctly, r=bent
--HG-- extra : transplant_source : H%AC%29%DF8y%E8f%F1%2B%3B%5C%A3Z%10%D1R%7E%CC%10
This commit is contained in:
Родитель
8399a7ee6c
Коммит
55ba588b42
|
@ -1588,6 +1588,16 @@ PluginModuleChild::DeallocForInstance(NPObjectData* d, void* userArg)
|
||||||
if (o->_class && o->_class->invalidate)
|
if (o->_class && o->_class->invalidate)
|
||||||
o->_class->invalidate(o);
|
o->_class->invalidate(o);
|
||||||
|
|
||||||
|
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||||
|
{
|
||||||
|
int32_t refCnt = o->referenceCount;
|
||||||
|
while (refCnt) {
|
||||||
|
--refCnt;
|
||||||
|
NS_LOG_RELEASE(o, refCnt, "NPObject");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DeallocNPObject(o);
|
DeallocNPObject(o);
|
||||||
|
|
||||||
if (d->actor)
|
if (d->actor)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче