mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Backed out changeset 33c254db1f15 (bug 1305829) for causing memory leaks on OS X
This commit is contained in:
parent
baff2f0613
commit
04b91a0fb4
@ -112,15 +112,8 @@ ClientLayerManager::ClientLayerManager(nsIWidget* aWidget)
|
||||
ClientLayerManager::~ClientLayerManager()
|
||||
{
|
||||
if (mTransactionIdAllocator) {
|
||||
// Make sure to notify the refresh driver just in case it's waiting on a
|
||||
// pending transaction.
|
||||
RefPtr<TransactionIdAllocator> allocator = mTransactionIdAllocator;
|
||||
uint64_t id = mLatestTransactionId;
|
||||
|
||||
RefPtr<Runnable> task = NS_NewRunnableFunction([allocator, id] () -> void {
|
||||
allocator->NotifyTransactionCompleted(id);
|
||||
});
|
||||
NS_DispatchToMainThread(task.forget());
|
||||
TimeStamp now = TimeStamp::Now();
|
||||
DidComposite(mLatestTransactionId, now, now);
|
||||
}
|
||||
mMemoryPressureObserver->Destroy();
|
||||
ClearCachedResources();
|
||||
|
Loading…
Reference in New Issue
Block a user