Release clock only when one is set.
This commit is contained in:
parent
4d639be88b
commit
cb6e4a12ea
|
@ -422,6 +422,8 @@ static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface)
|
|||
if (!refCount)
|
||||
{
|
||||
DeleteCriticalSection(&This->csFilter);
|
||||
|
||||
if (This->pClock)
|
||||
IReferenceClock_Release(This->pClock);
|
||||
|
||||
IPin_Release(This->ppPins[0]);
|
||||
|
|
Loading…
Reference in New Issue