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