Commit 5a96cc14 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

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

parent 134aa67e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment