diff options
author | 2025-03-06 12:01:17 +0000 | |
---|---|---|
committer | 2025-03-06 12:01:17 +0000 | |
commit | eae382b9b2c5f49392c066fb45e1a6fd41206e66 (patch) | |
tree | 3197ee5b3c0048a259e397bd522b7e1b0ef6ec4e /libs/hostgraphics/HostBufferQueue.cpp | |
parent | 454a6f4cd416173d0317253733789ec5455c2c83 (diff) |
Release buffer in HostBufferQueue
This releases the pointer to the GraphicBuffer when detachBuffer is
called to avoid leaking the memory.
Flag: NONE host-only change
Bug: 388141123
Bug: 396183478
Test: N/A
Change-Id: Ia705c046653f01192991bb2c181bee685fad97a2
Diffstat (limited to 'libs/hostgraphics/HostBufferQueue.cpp')
-rw-r--r-- | libs/hostgraphics/HostBufferQueue.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hostgraphics/HostBufferQueue.cpp b/libs/hostgraphics/HostBufferQueue.cpp index 7e14b88a47fa..ef5406250251 100644 --- a/libs/hostgraphics/HostBufferQueue.cpp +++ b/libs/hostgraphics/HostBufferQueue.cpp @@ -29,6 +29,7 @@ public: } virtual status_t detachBuffer(int slot) { + mBuffer.clear(); return OK; } |