summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@android.com> 2014-02-26 19:31:16 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-02-26 19:31:16 +0000
commit300bdfa13dd903c9335c11838cc0a604d0f8f2e6 (patch)
treebaff88b39d8e3c8f613f02ab43fcc78391079501 /libs/hwui/PathCache.cpp
parent9d1ae3b87cdb77781f21e880c7bcb3ad32f7a906 (diff)
parent328b7ee6a2ba2dc8f162fa57dbafd4bfc89bb72e (diff)
am 328b7ee6: am aecb8c43: am 7b4cce68: am c3bac8a0: Merge "Fix graphics corruption caused by HWUI caches"
* commit '328b7ee6a2ba2dc8f162fa57dbafd4bfc89bb72e': Fix graphics corruption caused by HWUI caches
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r--libs/hwui/PathCache.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp
index 945988556cb6..5a49f38c6996 100644
--- a/libs/hwui/PathCache.cpp
+++ b/libs/hwui/PathCache.cpp
@@ -395,7 +395,9 @@ void PathCache::clearGarbage() {
Mutex::Autolock l(mLock);
size_t count = mGarbage.size();
for (size_t i = 0; i < count; i++) {
- remove(pathsToRemove, mGarbage.itemAt(i));
+ const path_pair_t& pair = mGarbage.itemAt(i);
+ remove(pathsToRemove, pair);
+ delete pair.getFirst();
}
mGarbage.clear();
}