mirror of https://github.com/axmolengine/axmol.git
fixed #933: free doc
This commit is contained in:
parent
591b7d0619
commit
2b91b1c7cf
|
@ -368,6 +368,12 @@ bool CCUserDefault::createXMLFile()
|
|||
bRet = true;
|
||||
} while (0);
|
||||
|
||||
// if doc is not null, free it
|
||||
if (doc)
|
||||
{
|
||||
xmlFreeDoc(doc);
|
||||
}
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue