зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
3c10d3a700
Коммит
3b1ef49660
|
@ -1588,6 +1588,16 @@ PluginModuleChild::DeallocForInstance(NPObjectData* d, void* userArg)
|
|||
if (o->_class && o->_class->invalidate)
|
||||
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);
|
||||
|
||||
if (d->actor)
|
||||
|
|
Загрузка…
Ссылка в новой задаче