Proxy Ref Counting Fix

Robert Shearman R.J.Shearman at
Sat Jun 12 10:45:26 CDT 2004


The reason behind this patch was the standard proxy object not having
enough references and hence being freed whilst still in use, causing bad
things to happen. This patch fixes that by bumping the initial count to
2 and adding big fat comments in each place we also do that to make sure
that others reading the code know why we are doing that. The patch also
fixes some potential (and actual) ref count leaks in the standard


- Fix ref count on standard proxy creation
- Release channel buffer in StdMarshal_UnmarshalInterface, since we no
longer use it and the proxy should have taken a reference on it.
- Add a few comments

-------------- next part --------------
A non-text attachment was scrubbed...
Name: olerefcountfix.diff
Type: text/x-patch
Size: 3598 bytes
Desc: not available
Url :

More information about the wine-patches mailing list