Camera: Clear cached HIDL references

Cached 3.3 and 3.4 HIDL session references must be cleared
otherwise the session implementation will not get released
and this could result in resource leaks.

Bug: 72692738
Test: Manual using camera application
Change-Id: I1d4eef43295db837f2fb4380bd84e2e7dfb5b5ef
gugelfrei
Emilian Peev 7 years ago
parent 1e0a07b665
commit 9e740b0fd4

@ -3393,6 +3393,8 @@ bool Camera3Device::HalInterface::valid() {
}
void Camera3Device::HalInterface::clear() {
mHidlSession_3_4.clear();
mHidlSession_3_3.clear();
mHidlSession.clear();
}

Loading…
Cancel
Save