[PATCH 2/4] winegstreamer: Zero-initialize the GstImpl filter.

Zebediah Figura z.figura12 at gmail.com
Thu Feb 22 15:31:18 CST 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/gstdemux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 42c455b..b6b02a1 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1252,6 +1252,7 @@ IUnknown * CALLBACK Gstreamer_Splitter_create(IUnknown *pUnkOuter, HRESULT *phr)
         *phr = E_OUTOFMEMORY;
         return NULL;
     }
+    memset(This, 0, sizeof(*This));
 
     obj = (IUnknown*)&This->filter.IBaseFilter_iface;
     BaseFilter_Init(&This->filter, &GST_Vtbl, &CLSID_Gstreamer_Splitter, (DWORD_PTR)(__FILE__ ": GSTImpl.csFilter"), &BaseFuncTable);
-- 
2.7.4




More information about the wine-devel mailing list