diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 57dc38570aa..057ca3e6a3c 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -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;