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
8b861189
Commit
8b861189
authored
Feb 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed a leak (valgrind).
parent
a124d74c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
protocol.c
dlls/mshtml/protocol.c
+10
-2
No files found.
dlls/mshtml/protocol.c
View file @
8b861189
...
@@ -217,6 +217,8 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
...
@@ -217,6 +217,8 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
BINDINFO
bindinfo
;
BINDINFO
bindinfo
;
DWORD
grfBINDF
=
0
;
DWORD
grfBINDF
=
0
;
LPCWSTR
text
=
NULL
;
LPCWSTR
text
=
NULL
;
DWORD
data_len
;
BYTE
*
data
;
static
const
WCHAR
html_begin
[]
=
{
0xfeff
,
'<'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
static
const
WCHAR
html_begin
[]
=
{
0xfeff
,
'<'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
static
const
WCHAR
html_end
[]
=
{
'<'
,
'/'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
static
const
WCHAR
html_end
[]
=
{
'<'
,
'/'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
...
@@ -247,9 +249,15 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
...
@@ -247,9 +249,15 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
text
=
NULL
;
text
=
NULL
;
}
}
This
->
data_len
=
sizeof
(
html_begin
)
+
sizeof
(
html_end
)
-
sizeof
(
WCHAR
)
data_len
=
sizeof
(
html_begin
)
+
sizeof
(
html_end
)
-
sizeof
(
WCHAR
)
+
(
text
?
strlenW
(
text
)
*
sizeof
(
WCHAR
)
:
0
);
+
(
text
?
strlenW
(
text
)
*
sizeof
(
WCHAR
)
:
0
);
This
->
data
=
heap_alloc
(
This
->
data_len
);
data
=
heap_alloc
(
data_len
);
if
(
!
data
)
return
E_OUTOFMEMORY
;
heap_free
(
This
->
data
);
This
->
data
=
data
;
This
->
data_len
=
data_len
;
memcpy
(
This
->
data
,
html_begin
,
sizeof
(
html_begin
));
memcpy
(
This
->
data
,
html_begin
,
sizeof
(
html_begin
));
if
(
text
)
if
(
text
)
...
...
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