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

Commit a47fe3e7 authored by Hongguang's avatar Hongguang
Browse files

Free native_handle created using makeFromAidl

Bug: 228380587
Test: atest android.media.tv.tuner.cts on HIDL HAL
Change-Id: Ibd29170118c6d0c1f08a91ad564c2a00b31a64cd
parent 688cec6e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -390,7 +390,9 @@ TunerHidlFilter::~TunerHidlFilter() {
                static_cast<int32_t>(Result::INVALID_STATE));
    }

    HidlResult res = mFilter->releaseAvHandle(hidl_handle(makeFromAidl(in_handle)), in_avDataId);
    hidl_handle handle;
    handle.setTo(makeFromAidl(in_handle), true);
    HidlResult res = mFilter->releaseAvHandle(handle, in_avDataId);
    if (res != HidlResult::SUCCESS) {
        return ::ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(res));
    }