commit | fa94a3ba799c3aadb405ef12deee9531e05dbcee | [log] [tgz] |
---|---|---|
author | Yichi Chen <yichichen@google.com> | Sat Dec 08 00:06:25 2018 +0800 |
committer | Sungtak Lee <taklee@google.com> | Wed Jan 23 18:27:17 2019 -0800 |
tree | be19bf332a4036ef6bfbbf0412dd5f36b0a5845c | |
parent | ad36699c757285227810b809658c3ca2a0d22229 [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