quartz: Fixed crash in releasing uninitializes pAlloc and pReader.

This commit is contained in:
Piotr Caban 2006-06-30 13:37:19 +02:00 committed by Alexandre Julliard
parent 628371021b
commit 02479df343
1 changed files with 4 additions and 2 deletions

View File

@ -1131,8 +1131,10 @@ ULONG WINAPI PullPin_Release(IPin * iface)
{
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;