diff options
author | 2014-02-26 19:14:32 +0000 | |
---|---|---|
committer | 2014-02-26 19:14:32 +0000 | |
commit | 328b7ee6a2ba2dc8f162fa57dbafd4bfc89bb72e (patch) | |
tree | ca447ed35138f9dcfc10cbb4e2a47e2057175225 /libs/hwui/PathCache.cpp | |
parent | 97686e00233f6475bd4a5a48bc718fcf88bbf688 (diff) | |
parent | aecb8c43d0c6c3d2b55f88abeaa0e3197be59301 (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.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(); } |