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

Commit ccb8fd3b authored by Lajos Molnar's avatar Lajos Molnar
Browse files

codec2: do not close handle in _C2FenceFactory::CreateFromNativeHandle

This method states that the handle is owned and retained by the caller.

Bug: 339168150
Change-Id: Ie007e5f3eb0bdc8f73de2c5f515158e5eecab396
parent ec4a0953
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -533,8 +533,7 @@ C2Fence _C2FenceFactory::CreateFromNativeHandle(const native_handle_t* handle) {
            break;
        default:
            ALOGV("Unsupported fence type %d", type);
            // If this is malformed-handle close the handle here.
            (void) native_handle_close(handle);
            // Nothing else to do. The handle is owned by the caller.
            // return a null-fence in this case
            break;
    }