Commit b5e4d1a8 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

The channel buffer can be NULL if the proxy is disconnected, so check

for this before releasing it.
parent 9f426df0
......@@ -346,7 +346,7 @@ static ULONG WINAPI CFProxy_Release(LPCLASSFACTORY iface) {
ref = InterlockedDecrement(&This->ref);
if (!ref) {
IRpcChannelBuffer_Release(This->chanbuf);
if (This->chanbuf) IRpcChannelBuffer_Release(This->chanbuf);
HeapFree(GetProcessHeap(),0,This);
}
return ref;
......
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