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

Commit 6bf3424c authored by Brian Duddie's avatar Brian Duddie Committed by Android (Google) Code Review
Browse files

Merge "ContextHub: Avoid reference leaks" into nyc-mr1-dev

parents 68d75190 c3510453
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ static void passOnOsResponse(uint32_t hubHandle, uint32_t msgType,
    env->CallIntMethod(db.jniInfo.jContextHubService,
                       db.jniInfo.contextHubServiceMsgReceiptCallback,
                       jheader, jmsg);
    env->DeleteLocalRef(jmsg);
    env->DeleteLocalRef(jheader);

    delete[] msg;
}