summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@android.com> 2014-02-26 19:14:32 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-02-26 19:14:32 +0000
commit328b7ee6a2ba2dc8f162fa57dbafd4bfc89bb72e (patch)
treeca447ed35138f9dcfc10cbb4e2a47e2057175225 /libs/hwui/PathCache.cpp
parent97686e00233f6475bd4a5a48bc718fcf88bbf688 (diff)
parentaecb8c43d0c6c3d2b55f88abeaa0e3197be59301 (diff)
am aecb8c43: am 7b4cce68: am c3bac8a0: Merge "Fix graphics corruption caused by HWUI caches"
* commit 'aecb8c43d0c6c3d2b55f88abeaa0e3197be59301': 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 5df64080b102..cf8adf8772f3 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();
}