import change from tenfourfox:

- closes #647: M1724107 M1721107+backbugs M1716622 +TLDs (a3a4a114b)
This commit is contained in:
roytam1 2021-09-07 10:23:53 +08:00
commit a49b1a5902
5 changed files with 314 additions and 98 deletions

View file

@ -170,6 +170,7 @@ public:
void operator delete(void* aPtr)
{
sAllocator->Free(aPtr);
sAllocatorUsers--;
DeleteAllocatorIfNeeded();
}
@ -193,7 +194,6 @@ private:
{
MOZ_ASSERT(!sCanDeleteAllocator || sAllocatorUsers > 0,
"This will result in us attempting to deallocate the nsTimerEvent allocator twice");
sAllocatorUsers--;
}
RefPtr<nsTimerImpl> mTimer;