Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbdb1f6f authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Fix ION buffer leaks

Native buffer handles should always get closed
and deleted during buffer release.

BUG: 35338606
Test: Manual using application
Change-Id: I5d7a4b02a28b29b872b66843d623166f04207c2e
parent 60536d8e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -194,10 +194,10 @@ private:
            mRelease(mDevice, handle);
        } else {
            mModule->unregisterBuffer(mModule, handle);
        }
        native_handle_close(handle);
        native_handle_delete(const_cast<native_handle_t*>(handle));
    }
    }

    // gralloc1
    gralloc1_device_t* mDevice;