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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user