commit | b5e4d1a8d8357774a545fcc956172f97b0867783 | [log] [tgz] |
---|---|---|
author | Robert Shearman <rob@codeweavers.com> | Wed Jan 05 17:30:20 2005 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Jan 05 17:30:20 2005 +0000 |
tree | 732b1cd44a44cedf34721d6fe912f4b1f8d9052b | |
parent | 9f426df0a8d6f86c9779e3f9af57fa01e4fa8173 [diff] |
The channel buffer can be NULL if the proxy is disconnected, so check for this before releasing it.
diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 5255474..67d89e7 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c
@@ -346,7 +346,7 @@ ref = InterlockedDecrement(&This->ref); if (!ref) { - IRpcChannelBuffer_Release(This->chanbuf); + if (This->chanbuf) IRpcChannelBuffer_Release(This->chanbuf); HeapFree(GetProcessHeap(),0,This); } return ref;