From 0e8b1d64d8f2c0af750bee90be57ad4022119cde Mon Sep 17 00:00:00 2001 From: Ankit Goyal Date: Mon, 18 Oct 2021 17:36:33 +0800 Subject: 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 --- gralloc4/src/core/mali_gralloc_bufferallocation.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'gralloc4/src') 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.*/ -- cgit v1.2.3