From b5e4d1a8d8357774a545fcc956172f97b0867783 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 5 Jan 2005 17:30:20 +0000 Subject: [PATCH] The channel buffer can be NULL if the proxy is disconnected, so check for this before releasing it. --- dlls/ole32/oleproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 5255474a769..67d89e7fed9 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -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;