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

Commit d4ff25f9 authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

GraphicBufferSource: Fix native handle leak

Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small

Bug: 153197116
Change-Id: I402bad3c2415393c5a124ac5411eb667e06cd2fa
parent c92e3e07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ struct TWGraphicBufferSource::TWOmxNodeWrapper : public IOmxNodeWrapper {
            int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override {
        Message tMsg;
        tMsg.type = Message::Type::EVENT;
        tMsg.fence = native_handle_create(0, 0);
        tMsg.fence.setTo(native_handle_create(0, 0), /* shouldOwn = */ true);
        tMsg.data.eventData.event = uint32_t(OMX_EventDataSpaceChanged);
        tMsg.data.eventData.data1 = dataSpace;
        tMsg.data.eventData.data2 = aspects;