mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "cas: manually clear strong ref before callback"
This commit is contained in:
committed by
Android (Google) Code Review
commit
58983cb2b2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user