commit | 4d9f47b60ba64b6edf51c66e1602ec0ded1a3de9 | [log] [tgz] |
---|---|---|
author | Greg Hackmann <ghackmann@google.com> | Wed Apr 02 11:52:10 2014 -0700 |
committer | Greg Hackmann <ghackmann@google.com> | Thu Apr 03 09:43:48 2014 -0700 |
tree | 1b174bf3c952e213513090a8cc149cc85fcbb48c | |
parent | d4a7a2944b29e3338fd40d6f5cc2e1d6d4328888 [diff] |
gralloc: refcount private_module_t gralloc_open() can be called multiple times in the same process, which led to the existing ion fd leaking on each open; the surviving fd also leaked on close. Refcount the private_module_t to prevent this. Bug: 13633155 Change-Id: I09ac8096fe0101b91b23e7c8d2ee9e11efe29b03 Signed-off-by: Greg Hackmann <ghackmann@google.com>