mirror of
https://github.com/reactos/wine.git
synced 2025-01-28 23:42:53 +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);
|
ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
if (!ref) {
|
if (!ref) {
|
||||||
IRpcChannelBuffer_Release(This->chanbuf);
|
if (This->chanbuf) IRpcChannelBuffer_Release(This->chanbuf);
|
||||||
HeapFree(GetProcessHeap(),0,This);
|
HeapFree(GetProcessHeap(),0,This);
|
||||||
}
|
}
|
||||||
return ref;
|
return ref;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user