Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f4558c64
Commit
f4558c64
authored
Sep 21, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove redundant NULL check before SysFreeString.
parent
410302d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
saxreader.c
dlls/msxml3/saxreader.c
+4
-6
No files found.
dlls/msxml3/saxreader.c
View file @
f4558c64
...
...
@@ -1517,10 +1517,8 @@ static ULONG WINAPI isaxlocator_Release(
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
if
(
This
->
publicId
)
SysFreeString
(
This
->
publicId
);
if
(
This
->
systemId
)
SysFreeString
(
This
->
systemId
);
SysFreeString
(
This
->
publicId
);
SysFreeString
(
This
->
systemId
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
nsStack
);
ISAXXMLReader_Release
((
ISAXXMLReader
*
)
&
This
->
saxreader
->
lpSAXXMLReaderVtbl
);
...
...
@@ -1558,7 +1556,7 @@ static HRESULT WINAPI isaxlocator_getPublicId(
BSTR
publicId
;
saxlocator
*
This
=
impl_from_ISAXLocator
(
iface
);
if
(
This
->
publicId
)
SysFreeString
(
This
->
publicId
);
SysFreeString
(
This
->
publicId
);
publicId
=
bstr_from_xmlChar
(
xmlSAX2GetPublicId
(
This
->
pParserCtxt
));
if
(
SysStringLen
(
publicId
))
...
...
@@ -1580,7 +1578,7 @@ static HRESULT WINAPI isaxlocator_getSystemId(
BSTR
systemId
;
saxlocator
*
This
=
impl_from_ISAXLocator
(
iface
);
if
(
This
->
systemId
)
SysFreeString
(
This
->
systemId
);
SysFreeString
(
This
->
systemId
);
systemId
=
bstr_from_xmlChar
(
xmlSAX2GetSystemId
(
This
->
pParserCtxt
));
if
(
SysStringLen
(
systemId
))
...
...
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