Proxy Ref Counting Fix
Robert Shearman
R.J.Shearman at warwick.ac.uk
Sat Jun 12 10:45:26 CDT 2004
Hi,
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
marshaler.
Rob
Changelog:
- 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 : http://www.winehq.org/pipermail/wine-patches/attachments/20040612/30a89f68/olerefcountfix.bin
More information about the wine-patches
mailing list