Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0a158e7a
Commit
0a158e7a
authored
Nov 11, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Release IInternetProtocolSink and BindInfo on request handle closure,…
urlmon: Release IInternetProtocolSink and BindInfo on request handle closure, not on first handle closure.
parent
f40955bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
http.c
dlls/urlmon/http.c
+14
-12
No files found.
dlls/urlmon/http.c
View file @
0a158e7a
...
...
@@ -148,15 +148,9 @@ static void HTTPPROTOCOL_Close(HttpProtocol *This)
This
->
http_negotiate
=
0
;
}
if
(
This
->
request
)
{
InternetCloseHandle
(
This
->
request
);
This
->
request
=
0
;
}
if
(
This
->
connect
)
{
InternetCloseHandle
(
This
->
connect
);
This
->
connect
=
0
;
}
if
(
This
->
internet
)
{
InternetCloseHandle
(
This
->
internet
);
...
...
@@ -208,15 +202,23 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
IInternetProtocol_AddRef
((
IInternetProtocol
*
)
This
);
return
;
case
INTERNET_STATUS_HANDLE_CLOSING
:
if
(
This
->
protocol_sink
)
if
(
*
(
HINTERNET
*
)
lpvStatusInformation
==
This
->
connect
)
{
IInternetProtocolSink_Release
(
This
->
protocol_sink
);
This
->
protocol_sink
=
0
;
This
->
connect
=
0
;
}
if
(
This
->
bind_info
.
cbSize
)
else
if
(
*
(
HINTERNET
*
)
lpvStatusInformation
==
This
->
request
)
{
ReleaseBindInfo
(
&
This
->
bind_info
);
memset
(
&
This
->
bind_info
,
0
,
sizeof
(
This
->
bind_info
));
This
->
request
=
0
;
if
(
This
->
protocol_sink
)
{
IInternetProtocolSink_Release
(
This
->
protocol_sink
);
This
->
protocol_sink
=
0
;
}
if
(
This
->
bind_info
.
cbSize
)
{
ReleaseBindInfo
(
&
This
->
bind_info
);
memset
(
&
This
->
bind_info
,
0
,
sizeof
(
This
->
bind_info
));
}
}
IInternetProtocol_Release
((
IInternetProtocol
*
)
This
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment