fixed #933: free doc

This commit is contained in:
minggo 2012-02-02 14:24:51 +08:00
parent 591b7d0619
commit 2b91b1c7cf
1 changed files with 6 additions and 0 deletions

View File

@ -368,6 +368,12 @@ bool CCUserDefault::createXMLFile()
bRet = true;
} while (0);
// if doc is not null, free it
if (doc)
{
xmlFreeDoc(doc);
}
return bRet;
}