quartz: Fixed crash in releasing uninitializes pAlloc and pReader.
This commit is contained in:
parent
628371021b
commit
02479df343
|
@ -1131,8 +1131,10 @@ ULONG WINAPI PullPin_Release(IPin * iface)
|
||||||
{
|
{
|
||||||
if (This->hThread)
|
if (This->hThread)
|
||||||
PullPin_StopProcessing(This);
|
PullPin_StopProcessing(This);
|
||||||
IMemAllocator_Release(This->pAlloc);
|
if(This->pAlloc)
|
||||||
IAsyncReader_Release(This->pReader);
|
IMemAllocator_Release(This->pAlloc);
|
||||||
|
if(This->pReader)
|
||||||
|
IAsyncReader_Release(This->pReader);
|
||||||
CloseHandle(This->hEventStateChanged);
|
CloseHandle(This->hEventStateChanged);
|
||||||
CoTaskMemFree(This);
|
CoTaskMemFree(This);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue