Fix for memory leak
This commit is contained in:
parent
a78a048577
commit
8aca337de7
@ -2,6 +2,9 @@
|
|||||||
Version 1.6.13
|
Version 1.6.13
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2011-03-08 Iain Denniston <iain.denniston(at)gmail.com>
|
||||||
|
Fix for memory leak.
|
||||||
|
|
||||||
2011-03-08 Iain Denniston <iain.denniston(at)gmail.com>
|
2011-03-08 Iain Denniston <iain.denniston(at)gmail.com>
|
||||||
Fix and Update of MSVC9 solution and project files - now compile in all
|
Fix and Update of MSVC9 solution and project files - now compile in all
|
||||||
modes. Added x64 and static library targets.
|
modes. Added x64 and static library targets.
|
||||||
|
@ -272,6 +272,8 @@ int ixmlElement_setAttributeNode(
|
|||||||
}
|
}
|
||||||
if (rtAttr != NULL) {
|
if (rtAttr != NULL) {
|
||||||
*rtAttr = (IXML_Attr *)attrNode;
|
*rtAttr = (IXML_Attr *)attrNode;
|
||||||
|
} else {
|
||||||
|
ixmlAttr_free((IXML_Attr *)attrNode);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Add this attribute */
|
/* Add this attribute */
|
||||||
|
@ -588,6 +588,8 @@ int ixmlNode_removeChild(
|
|||||||
oldChild->parentNode = NULL;
|
oldChild->parentNode = NULL;
|
||||||
if (returnNode != NULL) {
|
if (returnNode != NULL) {
|
||||||
*returnNode = oldChild;
|
*returnNode = oldChild;
|
||||||
|
} else {
|
||||||
|
ixmlNode_free(oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
return IXML_SUCCESS;
|
return IXML_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user