Commit 2cf4b601 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Clear the debug info before calling DeleteCriticalSection (Valgrind).

parent 93f3b062
......@@ -532,11 +532,13 @@ void strmbase_filter_init(struct strmbase_filter *filter, IUnknown *outer,
filter->ops = ops;
}
void strmbase_filter_cleanup(struct strmbase_filter *This)
void strmbase_filter_cleanup(struct strmbase_filter *filter)
{
if (This->clock)
IReferenceClock_Release(This->clock);
if (filter->clock)
IReferenceClock_Release(filter->clock);
This->IBaseFilter_iface.lpVtbl = NULL;
DeleteCriticalSection(&This->csFilter);
filter->IBaseFilter_iface.lpVtbl = NULL;
if (filter->csFilter.DebugInfo != (RTL_CRITICAL_SECTION_DEBUG *)-1)
filter->csFilter.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&filter->csFilter);
}
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