From 97fea6d80e043b5411c82cbc0b53d236e4d6532e Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 17 May 2016 14:02:49 -0500 Subject: [PATCH] strmbase: Initialize QualityControl struct on allocation. Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- dlls/strmbase/qualitycontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/strmbase/qualitycontrol.c b/dlls/strmbase/qualitycontrol.c index ce14c72b34f..46e0193453c 100644 --- a/dlls/strmbase/qualitycontrol.c +++ b/dlls/strmbase/qualitycontrol.c @@ -43,7 +43,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl { QualityControlImpl *This; TRACE("%p, %p, %p\n", input, self, ppv); - *ppv = HeapAlloc(GetProcessHeap(),0,sizeof(QualityControlImpl)); + *ppv = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(QualityControlImpl)); if (!*ppv) return E_OUTOFMEMORY; This = *ppv; @@ -51,6 +51,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl This->self = self; This->tonotify = NULL; This->clock = NULL; + This->current_rstart = This->current_rstop = -1; TRACE("-> %p\n", This); return S_OK; }