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

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

Merge "cas: manually clear strong ref before callback"

parents 6658796b ea3f07b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ Return<void> CasImpl::openSession(openSession_cb _hidl_cb) {
    status_t err = INVALID_OPERATION;
    if (holder != NULL) {
        err = holder->get()->openSession(&sessionId);
        holder.clear();
    }

    _hidl_cb(toStatus(err), sessionId);