OSDN Git Service

Ensure we close all the gem handles.
[android-x86/external-IA-Hardware-Composer.git] / os / android / gralloc1bufferhandler.cpp
index f5ec05a..7d7576a 100644 (file)
@@ -83,7 +83,7 @@ bool Gralloc1BufferHandler::CreateBuffer(uint32_t w, uint32_t h, int format,
 }
 
 bool Gralloc1BufferHandler::ReleaseBuffer(HWCNativeHandle handle) {
-  if (!ReleaseGraphicsBuffer(handle))
+  if (!ReleaseGraphicsBuffer(handle, fd_))
     return false;
 
   gralloc1_device_t *gralloc1_dvc =