[4/4] quartz: Destroy BaseOutputPin in FileAsyncReaderPin_Release.

Thomas Faber thomas.faber at reactos.org
Sun Jul 27 09:49:13 CDT 2014


Ditto -- FileAsyncReader_Construct uses BaseOutputPin_Construct to
create the pin, meaning BaseOutputPin_Destroy is the correct way to
free it.
-------------- next part --------------
From a28ac739e33fc7b6a5913e72b40ef34c3bbf330b Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber at reactos.org>
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



More information about the wine-patches mailing list