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

Commit 9e740b0f authored by Emilian Peev's avatar Emilian Peev
Browse files

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
parent 1e0a07b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3393,6 +3393,8 @@ bool Camera3Device::HalInterface::valid() {
}

void Camera3Device::HalInterface::clear() {
    mHidlSession_3_4.clear();
    mHidlSession_3_3.clear();
    mHidlSession.clear();
}