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

Commit a96f48ac authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Free native_handle created using makeFromAidl" into tm-dev

parents a1186bcd a47fe3e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -390,7 +390,9 @@ TunerHidlFilter::~TunerHidlFilter() {
                static_cast<int32_t>(Result::INVALID_STATE));
                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) {
    if (res != HidlResult::SUCCESS) {
        return ::ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(res));
        return ::ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(res));
    }
    }