Release clock only when one is set.

This commit is contained in:
Christian Costa 2005-06-04 09:37:35 +00:00 committed by Alexandre Julliard
parent 4d639be88b
commit cb6e4a12ea
1 changed files with 3 additions and 1 deletions

View File

@ -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]);