1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Bug 1724107, be more precise when counting the number of allocator users, r=KrisWright a=RyanVM

This commit is contained in:
2021-09-15 11:36:21 +08:00
parent 89c8257bcb
commit 44959f50f8
+1 -1
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;