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
dd0894c7
Commit
dd0894c7
authored
Aug 03, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved HTTP headers list freeing to separated function.
parent
9f37536d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-2
nsio.c
dlls/mshtml/nsio.c
+15
-10
No files found.
dlls/mshtml/mshtml_private.h
View file @
dd0894c7
...
...
@@ -467,11 +467,11 @@ typedef struct {
UINT
url_scheme
;
}
nsChannel
;
struct
ResponseHeader
{
typedef
struct
ResponseHeader
{
struct
list
entry
;
WCHAR
*
header
;
WCHAR
*
data
;
};
}
http_header_t
;
typedef
struct
{
HRESULT
(
*
qi
)(
HTMLDOMNode
*
,
REFIID
,
void
**
);
...
...
dlls/mshtml/nsio.c
View file @
dd0894c7
...
...
@@ -311,6 +311,18 @@ static inline BOOL is_http_channel(nsChannel *This)
return
This
->
url_scheme
==
URL_SCHEME_HTTP
||
This
->
url_scheme
==
URL_SCHEME_HTTPS
;
}
static
void
free_http_headers
(
struct
list
*
list
)
{
http_header_t
*
iter
,
*
iter_next
;
LIST_FOR_EACH_ENTRY_SAFE
(
iter
,
iter_next
,
list
,
http_header_t
,
entry
)
{
list_remove
(
&
iter
->
entry
);
heap_free
(
iter
->
header
);
heap_free
(
iter
->
data
);
heap_free
(
iter
);
}
}
#define NSCHANNEL_THIS(iface) DEFINE_THIS(nsChannel, HttpChannel, iface)
static
nsresult
NSAPI
nsChannel_QueryInterface
(
nsIHttpChannel
*
iface
,
nsIIDRef
riid
,
void
**
result
)
...
...
@@ -364,8 +376,6 @@ static nsrefcnt NSAPI nsChannel_Release(nsIHttpChannel *iface)
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
ref
)
{
struct
ResponseHeader
*
header
,
*
next_hdr
;
nsIURI_Release
(
NSURI
(
This
->
uri
));
if
(
This
->
owner
)
nsISupports_Release
(
This
->
owner
);
...
...
@@ -377,16 +387,11 @@ static nsrefcnt NSAPI nsChannel_Release(nsIHttpChannel *iface)
nsIInterfaceRequestor_Release
(
This
->
notif_callback
);
if
(
This
->
original_uri
)
nsIURI_Release
(
This
->
original_uri
);
heap_free
(
This
->
content_type
);
heap_free
(
This
->
charset
);
LIST_FOR_EACH_ENTRY_SAFE
(
header
,
next_hdr
,
&
This
->
response_headers
,
struct
ResponseHeader
,
entry
)
{
list_remove
(
&
header
->
entry
);
heap_free
(
header
->
header
);
heap_free
(
header
->
data
);
heap_free
(
header
);
}
free_http_headers
(
&
This
->
response_headers
);
heap_free
(
This
->
content_type
);
heap_free
(
This
->
charset
);
heap_free
(
This
);
}
...
...
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