mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
urlmon: Increment/decrement reference count when internet handles are created/destroyed.
This commit is contained in:
parent
134aa67ec9
commit
5a96cc146c
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue