Commit cb6e4a12 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Release clock only when one is set.

parent 4d639be8
...@@ -422,7 +422,9 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface) ...@@ -422,7 +422,9 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface)
if (!refCount) if (!refCount)
{ {
DeleteCriticalSection(&This->csFilter); DeleteCriticalSection(&This->csFilter);
IReferenceClock_Release(This->pClock);
if (This->pClock)
IReferenceClock_Release(This->pClock);
IPin_Release(This->ppPins[0]); IPin_Release(This->ppPins[0]);
......
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