Better handling of errors in RenderFile.

This commit is contained in:
Christian Costa 2004-12-06 11:47:13 +00:00 committed by Alexandre Julliard
parent 9cc5c15795
commit 8d01911493
1 changed files with 4 additions and 3 deletions

View File

@ -949,7 +949,8 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
} }
/* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */ /* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */
hr = GetInternalConnections(psplitter, ppinsplitter, &ppins, &nb); if (SUCCEEDED(hr))
hr = GetInternalConnections(psplitter, ppinsplitter, &ppins, &nb);
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
int i; int i;
@ -963,10 +964,10 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
break; break;
} }
} }
CoTaskMemFree(ppins);
} }
CoTaskMemFree(ppins);
return S_OK; return hr;
} }
static HRESULT WINAPI Graphbuilder_AddSourceFilter(IGraphBuilder *iface, static HRESULT WINAPI Graphbuilder_AddSourceFilter(IGraphBuilder *iface,