urlmon: Increment/decrement reference count when internet handles are created/destroyed.

Misha Koshelev mk144210 at bcm.edu
Thu Oct 11 19:58:23 CDT 2007


This fixes a race I found while trying to track down bug #9922 (I don't think it fixes that bug, although
I can't really reproduce it yet) and also native does this. Basically we need to add references to the
object per handle created (well really only one, but native adds per handle) because we access and
free structures in the HttpProtocol object when processing INTERNET_STATUS_HANDLE_CLOSING but we may
have already HeapFree'd the object in Release().
---
 dlls/urlmon/http.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4be5155635d66b0d6303979a81c942d2b3a4846e.diff
Type: text/x-patch
Size: 921 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071011/b06996b1/attachment-0001.bin 


More information about the wine-patches mailing list