Misha Koshelev : urlmon: Increment/ decrement reference count when internet handles are created/destroyed.
Alexandre Julliard
julliard at winehq.org
Fri Oct 12 05:23:03 CDT 2007
Module: wine
Branch: master
Commit: 5a96cc146c520df204b6ca8067187ac21d6c6dc1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a96cc146c520df204b6ca8067187ac21d6c6dc1
Author: Misha Koshelev <mk144210 at bcm.edu>
Date: Thu Oct 11 19:58:23 2007 -0500
urlmon: Increment/decrement reference count when internet handles are created/destroyed.
---
dlls/urlmon/http.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 4b2eae5..e356f34 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -204,6 +204,9 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
else
IInternetProtocol_Continue((IInternetProtocol *)This, &data);
return;
+ case INTERNET_STATUS_HANDLE_CREATED:
+ IInternetProtocol_AddRef((IInternetProtocol *)This);
+ return;
case INTERNET_STATUS_HANDLE_CLOSING:
if (This->protocol_sink)
{
@@ -215,6 +218,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
ReleaseBindInfo(&This->bind_info);
memset(&This->bind_info, 0, sizeof(This->bind_info));
}
+ IInternetProtocol_Release((IInternetProtocol *)This);
return;
default:
WARN("Unhandled Internet status callback %d\n", dwInternetStatus);
More information about the wine-cvs
mailing list