summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@android.com>2014-02-26 19:10:39 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-26 19:10:39 +0000
commitaecb8c43d0c6c3d2b55f88abeaa0e3197be59301 (patch)
treeca447ed35138f9dcfc10cbb4e2a47e2057175225 /libs/hwui/PathCache.cpp
parent91df776654e5cf66e5115e0c46ecdbe19a55a0bc (diff)
parent7b4cce68853d8bcfce2b6bd7f999915063eb56d2 (diff)
downloadframeworks_base-aecb8c43d0c6c3d2b55f88abeaa0e3197be59301.zip
frameworks_base-aecb8c43d0c6c3d2b55f88abeaa0e3197be59301.tar.gz
frameworks_base-aecb8c43d0c6c3d2b55f88abeaa0e3197be59301.tar.bz2
am 7b4cce68: am c3bac8a0: Merge "Fix graphics corruption caused by HWUI caches"
* commit '7b4cce68853d8bcfce2b6bd7f999915063eb56d2': 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 5df6408..cf8adf8 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();
}