summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Goyal <layog@google.com>2021-10-18 17:36:33 +0800
committerAnkit Goyal <layog@google.com>2021-10-18 17:38:23 +0800
commit0e8b1d64d8f2c0af750bee90be57ad4022119cde (patch)
tree95580b01cd25e28d0aa64b4317dcbd2408a8f955
parent4ffbe198a4b30112aa2a29f709de0052750b53ca (diff)
downloadgchips-0e8b1d64d8f2c0af750bee90be57ad4022119cde.tar.gz
gralloc4: Do not hold reference for dumping in allocator
Dump buffers are only per process and is not available at the allocator level. Gralloc should not be holding reference to that while allocating a buffer. Fix: 199336554 Test: Do not observe leaks in heap profiling Change-Id: If92cffb2db9ee30ab1a5cee0297d066138c60674
-rw-r--r--gralloc4/src/core/mali_gralloc_bufferallocation.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp
index c0f1549..d82ff8c 100644
--- a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp
+++ b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp
@@ -1118,8 +1118,6 @@ int mali_gralloc_buffer_allocate(const gralloc_buffer_descriptor_t *descriptors,
{
private_handle_t *hnd = (private_handle_t *)pHandle[i];
- mali_gralloc_dump_buffer_add(hnd);
-
if (shared)
{
/*each buffer will share the same backing store id.*/