diff options
author | John Reck <jreck@google.com> | 2016-02-11 00:36:34 +0000 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-02-11 00:36:34 +0000 |
commit | e537330ead4111cae74668bbc25a332e186d6c91 (patch) | |
tree | d73486362948e23296173ce418594bb654acea13 /libs/hwui/DamageAccumulator.cpp | |
parent | 499d83f21e7ffb687788bba1668b05fe38f6ebaf (diff) |
Revert "Fix all LA memory leaks forever!"
This reverts commit 499d83f21e7ffb687788bba1668b05fe38f6ebaf.
Change-Id: Ia893ae16ebbeae68e49cd13a20587104b73d39a0
Diffstat (limited to 'libs/hwui/DamageAccumulator.cpp')
-rw-r--r-- | libs/hwui/DamageAccumulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/DamageAccumulator.cpp b/libs/hwui/DamageAccumulator.cpp index 6d5833b3be86..c2e14a29f29e 100644 --- a/libs/hwui/DamageAccumulator.cpp +++ b/libs/hwui/DamageAccumulator.cpp @@ -45,7 +45,7 @@ struct DirtyStack { }; DamageAccumulator::DamageAccumulator() { - mHead = mAllocator.create_trivial<DirtyStack>(); + mHead = (DirtyStack*) mAllocator.alloc(sizeof(DirtyStack)); memset(mHead, 0, sizeof(DirtyStack)); // Create a root that we will not pop off mHead->prev = mHead; @@ -78,7 +78,7 @@ void DamageAccumulator::computeCurrentTransform(Matrix4* outMatrix) const { void DamageAccumulator::pushCommon() { if (!mHead->next) { - DirtyStack* nextFrame = mAllocator.create_trivial<DirtyStack>(); + DirtyStack* nextFrame = (DirtyStack*) mAllocator.alloc(sizeof(DirtyStack)); nextFrame->next = nullptr; nextFrame->prev = mHead; mHead->next = nextFrame; |