Rémi Bernon : winegstreamer: Free the params structure after setting the pool meta (Valgrind).
Module: wine Branch: master Commit: f3b9ea7aefee4f91c82091e36f01bc7fe21fe213 URL: https://gitlab.winehq.org/wine/wine/-/commit/f3b9ea7aefee4f91c82091e36f01bc7... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu May 11 21:02:52 2023 +0200 winegstreamer: Free the params structure after setting the pool meta (Valgrind). --- dlls/winegstreamer/wg_transform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/winegstreamer/wg_transform.c b/dlls/winegstreamer/wg_transform.c index 2f21e601e0b..bddd1f5fd74 100644 --- a/dlls/winegstreamer/wg_transform.c +++ b/dlls/winegstreamer/wg_transform.c @@ -134,7 +134,10 @@ static gboolean transform_sink_query_cb(GstPad *pad, GstObject *parent, GstQuery "padding-left", G_TYPE_UINT, align.padding_left, "padding-right", G_TYPE_UINT, align.padding_right, NULL))) + { gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, params); + gst_structure_free(params); + } if (!(config = gst_buffer_pool_get_config(pool))) GST_ERROR("Failed to get pool %p config.", pool);
participants (1)
-
Alexandre Julliard