Commit d51098ef authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

quartz: Avoid releasing NULL objects.

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