Merge "cas: manually clear strong ref before callback"

This commit is contained in:
TreeHugger Robot
2017-12-14 08:46:11 +00:00
committed by Android (Google) Code Review

View File

@@ -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);