Added an assert to check if new was successful.
This commit is contained in:
parent
ebfbf5e2aa
commit
4e00f691dc
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user