quartz: Fix memory leak found by valgrind.

This commit is contained in:
Maarten Lankhorst 2008-04-02 23:00:57 -07:00 committed by Alexandre Julliard
parent f5fdb793ed
commit cfeca053b8
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ static HRESULT WINAPI FilterGraph2_AddFilter(IFilterGraph2 *iface,
LPWSTR * pNewNames = CoTaskMemAlloc(newCapacity * sizeof(LPWSTR));
memcpy(ppNewFilters, This->ppFiltersInGraph, This->nFilters * sizeof(IBaseFilter*));
memcpy(pNewNames, This->pFilterNames, This->nFilters * sizeof(LPWSTR));
if (!This->filterCapacity)
if (This->filterCapacity)
{
CoTaskMemFree(This->ppFiltersInGraph);
CoTaskMemFree(This->pFilterNames);