diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2025-01-06 10:06:22 +0000 |
---|---|---|
committer | Barnabás Pőcze <pobrn@protonmail.com> | 2025-01-10 12:14:27 +0100 |
commit | ac611e80d2b65399a4592237777f8198db8efed9 (patch) | |
tree | e4e857c1d20ae7a3f182a714612111ca09a9f02a /meson_options.txt | |
parent | fd6e41b9fb32b54f6811898f824fe50b918d82eb (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 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions