Commit 97fea6d8 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

strmbase: Initialize QualityControl struct on allocation.

parent 00256497
...@@ -43,7 +43,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl ...@@ -43,7 +43,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl
{ {
QualityControlImpl *This; QualityControlImpl *This;
TRACE("%p, %p, %p\n", input, self, ppv); TRACE("%p, %p, %p\n", input, self, ppv);
*ppv = HeapAlloc(GetProcessHeap(),0,sizeof(QualityControlImpl)); *ppv = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(QualityControlImpl));
if (!*ppv) if (!*ppv)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
This = *ppv; This = *ppv;
...@@ -51,6 +51,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl ...@@ -51,6 +51,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl
This->self = self; This->self = self;
This->tonotify = NULL; This->tonotify = NULL;
This->clock = NULL; This->clock = NULL;
This->current_rstart = This->current_rstop = -1;
TRACE("-> %p\n", This); TRACE("-> %p\n", This);
return S_OK; return S_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment