mirror of
https://github.com/reactos/wine.git
synced 2025-01-27 15:02:26 +00:00
The channel buffer can be NULL if the proxy is disconnected, so check
for this before releasing it.
This commit is contained in:
parent
9f426df0a8
commit
b5e4d1a8d8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user