commit | a7f234cc34130ea5e99fffe5a18d60a735190926 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Tue Nov 22 11:37:04 2016 +0800 |
committer | Chia-I Wu <olv@google.com> | Wed Nov 23 11:58:23 2016 +0800 |
tree | 54a6ad178dc3b09b99b6e1022c9a37cefbddd7d3 | |
parent | a3bea860131dd7c916350dc6852584ba4fa23574 [diff] |
graphics: fix potential leaks for IAllocator Introduce IAllocatorClient to manage resources owned by a client (e.g., SF or VTS). This makes sure there is no resource leak when SF or VTS crashes. This also fixes two unrelated bugs - sizeof(Buffer) != sizeof(void*) on 32-bit impl. - layerCount was not set to 1 in tests Test: builds and boots Change-Id: I67f5cdd64b97fb3ce1b931099c25f59cc8517f21