Module: wine Branch: refs/heads/master Commit: 02479df343973872fdaf94aea0a70c982cb8b4be URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=02479df343973872fdaf94ae...
Author: Piotr Caban piotr.caban@gmail.com Date: Fri Jun 30 13:37:19 2006 +0200
quartz: Fixed crash in releasing uninitializes pAlloc and pReader.
---
dlls/quartz/pin.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 57dc385..057ca3e 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -1131,8 +1131,10 @@ ULONG WINAPI PullPin_Release(IPin * ifac { if (This->hThread) PullPin_StopProcessing(This); - IMemAllocator_Release(This->pAlloc); - IAsyncReader_Release(This->pReader); + if(This->pAlloc) + IMemAllocator_Release(This->pAlloc); + if(This->pReader) + IAsyncReader_Release(This->pReader); CloseHandle(This->hEventStateChanged); CoTaskMemFree(This); return 0;