Commit d9159093 authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard

Avoid crashing when releasing an NdrCStdStubBuffer that had been

previously disconnected.
parent 768d98e7
......@@ -95,8 +95,10 @@ ULONG WINAPI NdrCStdStubBuffer_Release(LPRPCSTUBBUFFER iface,
TRACE("(%p)->Release()\n",This);
if (!--(This->RefCount)) {
IUnknown_Release(This->pvServerObject);
IPSFactoryBuffer_Release(This->pPSFactory);
if(This->pvServerObject)
IUnknown_Release(This->pvServerObject);
if(This->pPSFactory)
IPSFactoryBuffer_Release(This->pPSFactory);
HeapFree(GetProcessHeap(),0,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