Added an assert to check if new was successful.

This commit is contained in:
hiker 2014-11-27 09:17:08 +11:00
parent ebfbf5e2aa
commit 4e00f691dc

View File

@ -423,6 +423,7 @@ XMLNode *FileManager::createXMLTreeFromString(const std::string & content)
try
{
char *b = new char[content.size()];
assert(b);
memcpy(b, content.c_str(), content.size());
io::IReadFile * ireadfile =
m_file_system->createMemoryReadFile(b, (int)content.size(),