mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Bug 1724107, be more precise when counting the number of allocator users, r=KrisWright a=RyanVM
This commit is contained in:
parent
89c8257bcb
commit
44959f50f8
1 changed files with 1 additions and 1 deletions
|
|
@ -170,6 +170,7 @@ public:
|
||||||
void operator delete(void* aPtr)
|
void operator delete(void* aPtr)
|
||||||
{
|
{
|
||||||
sAllocator->Free(aPtr);
|
sAllocator->Free(aPtr);
|
||||||
|
sAllocatorUsers--;
|
||||||
DeleteAllocatorIfNeeded();
|
DeleteAllocatorIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -193,7 +194,6 @@ private:
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(!sCanDeleteAllocator || sAllocatorUsers > 0,
|
MOZ_ASSERT(!sCanDeleteAllocator || sAllocatorUsers > 0,
|
||||||
"This will result in us attempting to deallocate the nsTimerEvent allocator twice");
|
"This will result in us attempting to deallocate the nsTimerEvent allocator twice");
|
||||||
sAllocatorUsers--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RefPtr<nsTimerImpl> mTimer;
|
RefPtr<nsTimerImpl> mTimer;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue