Zebediah Figura : winegstreamer: Fix a leak in gstdecoder_source_get_media_type().

Alexandre Julliard julliard at winehq.org
Mon Aug 31 17:16:55 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Aug 29 12:37:36 2020 -0500

winegstreamer: Fix a leak in gstdecoder_source_get_media_type().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index e8f65a0e6e..2c9aafd7a6 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1713,6 +1713,7 @@ static HRESULT gstdecoder_source_get_media_type(struct gstdemux_source *pin,
             gst_caps_unref(caps);
             return S_OK;
         }
+        FreeMediaType(mt);
     }
 
     if (!strcmp(type, "video/x-raw") && index < ARRAY_SIZE(video_formats))




More information about the wine-cvs mailing list