Commit 6471e5cc authored by Michael R Sweet's avatar Michael R Sweet

Fixed a memory leak when loading invalid XML (Bug #496)

parent ce2c9713
......@@ -9,6 +9,7 @@ CHANGES IN Mini-XML 2.8
- Fixed a memory leak in mxmlElementDeleteAttr (Bug #452)
- Added MXML_MAJOR/MINOR_VERSION definitions to mxml.h (Bug $461)
- Fixed a bug reading UTF-16 characters from a file (Bug #454)
- Fixed a memory leak when loading invalid XML (Bug #496)
CHANGES IN Mini-XML 2.7
......
This diff is collapsed.
This diff is collapsed.
......@@ -3,7 +3,7 @@
<head>
<title>Documentation </title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="creator" content="Mini-XML v2.7">
<meta name="creator" content="Mini-XML v2.8">
<style type="text/css"><!--
body, p, h1, h2, h3, h4 {
font-family: "lucida grande", geneva, helvetica, arial, sans-serif;
......
......@@ -20,6 +20,8 @@ hspace="10" width="100" height="100" alt="B"></a>Release Notes</h1>
<li>Fixed a bug reading UTF-16 characters from a file (Bug #454)</li>
<li>Fixed a memory leak when loading invalid XML (Bug #496)</li>
</ul>
......
......@@ -1428,8 +1428,10 @@ mxml_load_data(
if (cb && parent)
type = (*cb)(parent);
else
else if (parent)
type = MXML_TEXT;
else
type = MXML_IGNORE;
while ((ch = (*getc_cb)(p, &encoding)) != EOF)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment