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
645f34dd
Commit
645f34dd
authored
Nov 08, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't free string that will be cleared by SafeArrayDestroy.
parent
50b76b76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
dom.c
dlls/mshtml/tests/dom.c
+1
-3
No files found.
dlls/mshtml/tests/dom.c
View file @
645f34dd
...
...
@@ -5693,7 +5693,6 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const char *text)
SAFEARRAYBOUND
dim
;
SAFEARRAY
*
sa
;
VARIANT
*
var
;
BSTR
str
;
HRESULT
hres
;
dim
.
lLbound
=
0
;
...
...
@@ -5701,7 +5700,7 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const char *text)
sa
=
SafeArrayCreate
(
VT_VARIANT
,
1
,
&
dim
);
SafeArrayAccessData
(
sa
,
(
void
**
)
&
var
);
V_VT
(
var
)
=
VT_BSTR
;
V_BSTR
(
var
)
=
str
=
a2bstr
(
text
);
V_BSTR
(
var
)
=
a2bstr
(
text
);
SafeArrayUnaccessData
(
sa
);
if
(
ln
)
...
...
@@ -5710,7 +5709,6 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const char *text)
hres
=
IHTMLDocument2_write
(
doc
,
sa
);
ok
(
hres
==
S_OK
,
"write failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
SafeArrayDestroy
(
sa
);
}
...
...
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