From: Thomas Faber Subject: [4/4] quartz: Destroy BaseOutputPin in FileAsyncReaderPin_Release. Message-Id: <53D51169.5070104@reactos.org> Date: Sun, 27 Jul 2014 16:49:13 +0200 Ditto -- FileAsyncReader_Construct uses BaseOutputPin_Construct to create the pin, meaning BaseOutputPin_Destroy is the correct way to free it. From a28ac739e33fc7b6a5913e72b40ef34c3bbf330b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 27 Jul 2014 11:39:55 +0200 Subject: quartz: Destroy BaseOutputPin in FileAsyncReaderPin_Release. --- dlls/quartz/filesource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index 96d83a1..84e4214 100644 --- a/dlls/quartz/filesource.c +++ b/dlls/quartz/filesource.c @@ -849,7 +849,7 @@ static ULONG WINAPI FileAsyncReaderPin_Release(IPin * iface) CloseHandle(This->hFile); This->csList.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&This->csList); - CoTaskMemFree(This); + BaseOutputPin_Destroy(&This->pin); return 0; } return refCount; -- 1.9.0.msysgit.0