diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-02 11:15:37 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-08 17:11:21 +0900 |
commit | 46d544345cbae270da533a737e334880720ceea5 (patch) | |
tree | b1b64b33c086e78093a96f1d5eaea64d9b7cd348 /src/qcam/assets/feathericons/shuffle.svg | |
parent | 79d666247182b0e42560ab505c29173ca94bdbb0 (diff) |
libcamera: IPAManager: make IPAManager lifetime explicitly managed
If any ipa_context instances are destroyed after the IPAManager is
destroyed, then a segfault will occur, since the modules have been
unloaded by the IPAManager and the context function pointers have been
freed.
Fix this by making the lifetime of the IPAManager explicit, and make the
CameraManager construct and deconstruct (automatically, via a unique
pointer) the IPAManager.
Also update the IPA interface test to do the construction and
deconstruction of the IPAManager, as it does not use the CameraManager.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/qcam/assets/feathericons/shuffle.svg')
0 files changed, 0 insertions, 0 deletions