Rémi Bernon : winegstreamer: Avoid leaking buffer list in wg_transform_read_data.

Alexandre Julliard julliard at winehq.org
Wed May 25 16:51:48 CDT 2022


Module: wine
Branch: master
Commit: 2ae08f035fdb5665eab4cef6333344ace528c61e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2ae08f035fdb5665eab4cef6333344ace528c61e

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon May 23 17:53:02 2022 +0200

winegstreamer: Avoid leaking buffer list in wg_transform_read_data.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>

---

 dlls/winegstreamer/wg_transform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winegstreamer/wg_transform.c b/dlls/winegstreamer/wg_transform.c
index 9699d7e0a31..d75593daedd 100644
--- a/dlls/winegstreamer/wg_transform.c
+++ b/dlls/winegstreamer/wg_transform.c
@@ -448,6 +448,7 @@ NTSTATUS wg_transform_read_data(void *args)
     else if (!(transform->input = gst_buffer_list_new()))
     {
         GST_ERROR("Failed to allocate new input queue");
+        gst_buffer_list_unref(input);
         return STATUS_NO_MEMORY;
     }
     else if ((ret = gst_pad_push_list(transform->my_src, input)))




More information about the wine-cvs mailing list