summaryrefslogtreecommitdiff
path: root/src/v4l2/meson.build
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2025-01-06 10:06:22 +0000
committerBarnabás Pőcze <pobrn@protonmail.com>2025-01-10 12:14:27 +0100
commitac611e80d2b65399a4592237777f8198db8efed9 (patch)
treee4e857c1d20ae7a3f182a714612111ca09a9f02a /src/v4l2/meson.build
parentfd6e41b9fb32b54f6811898f824fe50b918d82eb (diff)
gstreamer: allocator: gst_libcamera_allocator_new(): Fix memory leak
If `FrameBufferAllocator::allocate()` causes the construction to be aborted, the allocated `GstLibcameraAllocator` will not be deallocated properly. Use `g_autoptr()` to address this. `g_steal_pointer()` could only be used in glib 2.68 or later because earlier it evaluates to a pointer-to-void in C++, which would necessitate a `static_cast`. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Diffstat (limited to 'src/v4l2/meson.build')
0 files changed, 0 insertions, 0 deletions