quartz: Avoid releasing NULL objects.

This commit is contained in:
Chris Robinson 2007-04-04 09:21:58 -07:00 committed by Alexandre Julliard
parent 425d87464e
commit d51098ef11
1 changed files with 4 additions and 1 deletions

View File

@ -274,7 +274,10 @@ static ULONG Filtergraph_Release(IFilterGraphImpl *This) {
IBaseFilter_Release(This->ppFiltersInGraph[i]);
}
for (i = 0; i < This->nItfCacheEntries; i++)
IUnknown_Release(This->ItfCacheEntries[i].iface);
{
if (This->ItfCacheEntries[i].iface)
IUnknown_Release(This->ItfCacheEntries[i].iface);
}
IFilterMapper2_Release(This->pFilterMapper2);
CloseHandle(This->hEventCompletion);
EventsQueue_Destroy(&This->evqueue);