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
|
try
|
||||||
{
|
{
|
||||||
char *b = new char[content.size()];
|
char *b = new char[content.size()];
|
||||||
|
assert(b);
|
||||||
memcpy(b, content.c_str(), content.size());
|
memcpy(b, content.c_str(), content.size());
|
||||||
io::IReadFile * ireadfile =
|
io::IReadFile * ireadfile =
|
||||||
m_file_system->createMemoryReadFile(b, (int)content.size(),
|
m_file_system->createMemoryReadFile(b, (int)content.size(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user