summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Matthew Maurer <mmaurer@google.com> 2021-06-11 16:49:48 -0700
committer Matthew Maurer <mmaurer@google.com> 2021-06-13 02:27:40 +0000
commitcbbc33e91e6c5d11c7bed496159f662f790e1140 (patch)
tree6287001207066d84ece07cca6503114161d8c37b /vulkan/libvulkan/api.cpp
parent9c187a35a2aba822878d94d80493e067c3685f5f (diff)
binder: rust: Fix dropped service memleak
When `Binder<T>` objects die, they call the on_destroy for their class. On creation, the value was put into a Box. On destruction, `ptr::drop_in_place` was used to drop them. This means that while `Drop` was called on T, the box was not freed. Bug: 190517824 Test: Ran with showmap to confirm operations not leaking Merged-In: Ie9932cc67016eecff4d24ac0c8fcd1bc7df27b32 Change-Id: Ie9932cc67016eecff4d24ac0c8fcd1bc7df27b32
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions