commit | 9477790fd8c790a306d7988a6ff1ea0753aee64b | [log] [tgz] |
---|---|---|
author | Yichi Chen <yichichen@google.com> | Sat Dec 08 00:06:25 2018 +0800 |
committer | Yichi Chen <yichichen@google.com> | Sat Dec 22 06:21:33 2018 +0000 |
tree | 6d4664f3a078622629d08be31ec8122780eaa7c6 | |
parent | df70e8570bd3771f11a69ad14dd0621a351a0d19 [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