commit | ec613b342f41eec78c96db01d4ad7bbfe03bc305 | [log] [tgz] |
---|---|---|
author | Yichi Chen <yichichen@google.com> | Sat Dec 08 00:06:25 2018 +0800 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Jan 04 02:29:38 2019 +0000 |
tree | 6d4664f3a078622629d08be31ec8122780eaa7c6 | |
parent | 9341e4d2da93e4c4da9b6a46d5e5b23dcb5d836e [diff] |
C2: Delete mHandle properly to avoid memory leakage The return in the destructor of C2AllocationGralloc make its mHandle cannot be deleted properly. Remove the return and add the check for each resource properly to ensure mHandle can be freed. Bug: 119925123 Test: Play Youtube without increase inside memory heap Change-Id: Ifd4f1e405a30b9993082237d6a62b8a60c0cda20 (cherry picked from commit 9477790fd8c790a306d7988a6ff1ea0753aee64b)