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

Commit 15b0622d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Free native_handle created using makeFromAidl" into tm-dev am: a96f48ac am: 495677ed

parents 9765df84 495677ed
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));
    }