diff options
| author | 2014-02-26 18:47:59 +0000 | |
|---|---|---|
| committer | 2014-02-26 18:48:00 +0000 | |
| commit | c3bac8a096cc5661cf91c8c0aa9b7dd0fc099c5d (patch) | |
| tree | 65bd93bc54c55941cd409d68c8273cd8eb6bc165 /libs/hwui/PathCache.cpp | |
| parent | 2ba70fd49bfcbb516e75c198c106764609335feb (diff) | |
| parent | 36fad8f6fcfbc2087b910600ed5a6f9741177d00 (diff) | |
Merge "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(); } |