this code is redundant and leaks memory
Change-Id: Ib57f44c203ead68102d712ef29ab7362b0cea8db
This commit is contained in:
@@ -744,9 +744,6 @@ bool NodeJava::createSettingsDocument() const
|
|||||||
CXmlDocPtr doc(xmlNewDoc((xmlChar *)"1.0"));
|
CXmlDocPtr doc(xmlNewDoc((xmlChar *)"1.0"));
|
||||||
if (! doc)
|
if (! doc)
|
||||||
throw FrameworkException(JFW_E_ERROR, sExcMsg);
|
throw FrameworkException(JFW_E_ERROR, sExcMsg);
|
||||||
//Create a comment
|
|
||||||
xmlNewDocComment(
|
|
||||||
doc, (xmlChar *) "This is a generated file. Do not alter this file!");
|
|
||||||
|
|
||||||
//Create the root element and name spaces
|
//Create the root element and name spaces
|
||||||
xmlNodePtr root = xmlNewDocNode(
|
xmlNodePtr root = xmlNewDocNode(
|
||||||
|
Reference in New Issue
Block a user