diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-09 13:13:38 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-14 15:45:58 +0200 |
commit | cd4636c14fff91a3f729918d96d76e2dae095b91 (patch) | |
tree | c1f789e416affb818452d4fd6688ff7d1cc4ac4f /src/ipa/raspberrypi/data/imx219.json | |
parent | 5cfbbcd20731a2160206cc1d935eac2c770376ae (diff) |
libcamera: pipeline: raspberrypi: Don't leak RPiCameraData::sensor_
The CameraSensor instance stored in RPiCameraData::sensor_ is allocated
dynamically and never deleted. Fix the memory leak by storing it in a
std::unique_ptr<>.
Fixes: 740fd1b62f67 ("libcamera: pipeline: Raspberry Pi pipeline handler")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/data/imx219.json')
0 files changed, 0 insertions, 0 deletions