Commit 02479df3 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

quartz: Fixed crash in releasing uninitializes pAlloc and pReader.

parent 62837102
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment