diff options
author | 2014-03-11 18:08:10 +0000 | |
---|---|---|
committer | 2014-03-11 18:08:10 +0000 | |
commit | fa03b57295f7c73372bb62b0a1a3e906c3ee659e (patch) | |
tree | 5611ddcae713f80eb3a3bbb814f68618403ee244 /libs/hwui/PathCache.cpp | |
parent | 3ba975e75d1e09142dd6258fb9886d526f5cda69 (diff) | |
parent | 7b4cce68853d8bcfce2b6bd7f999915063eb56d2 (diff) |
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.cpp | 4 |
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(); } |