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
60a592b7
Commit
60a592b7
authored
Nov 30, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Avoid memory leaks (Coverity).
parent
60ecf707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
htmlbody.c
dlls/mshtml/htmlbody.c
+10
-5
No files found.
dlls/mshtml/htmlbody.c
View file @
60a592b7
...
...
@@ -635,7 +635,7 @@ static HRESULT WINAPI HTMLBodyElement_put_scroll(IHTMLBodyElement *iface, BSTR v
static
HRESULT
WINAPI
HTMLBodyElement_get_scroll
(
IHTMLBodyElement
*
iface
,
BSTR
*
p
)
{
HTMLBodyElement
*
This
=
impl_from_IHTMLBodyElement
(
iface
);
const
WCHAR
*
ret
;
const
WCHAR
*
ret
=
NULL
;
BSTR
overflow
;
HRESULT
hres
;
...
...
@@ -648,7 +648,7 @@ static HRESULT WINAPI HTMLBodyElement_get_scroll(IHTMLBodyElement *iface, BSTR *
if
(
!
overflow
||
!*
overflow
)
{
*
p
=
NULL
;
return
S_OK
;
hres
=
S_OK
;
}
else
if
(
!
strcmpW
(
overflow
,
visibleW
)
||
!
strcmpW
(
overflow
,
autoW
))
{
ret
=
autoW
;
}
else
if
(
!
strcmpW
(
overflow
,
scrollW
))
{
...
...
@@ -658,11 +658,16 @@ static HRESULT WINAPI HTMLBodyElement_get_scroll(IHTMLBodyElement *iface, BSTR *
}
else
{
TRACE
(
"Defaulting %s to NULL
\n
"
,
debugstr_w
(
overflow
));
*
p
=
NULL
;
return
S_OK
;
hres
=
S_OK
;
}
*
p
=
SysAllocString
(
ret
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
SysFreeString
(
overflow
);
if
(
ret
)
{
*
p
=
SysAllocString
(
ret
);
hres
=
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
return
hres
;
}
static
HRESULT
WINAPI
HTMLBodyElement_put_onselect
(
IHTMLBodyElement
*
iface
,
VARIANT
v
)
...
...
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