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

for this before releasing it.
This commit is contained in:
Robert Shearman 2005-01-05 17:30:20 +00:00 committed by Alexandre Julliard
parent 9f426df0a8
commit b5e4d1a8d8

View File

@ -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;