The culprit is this line:-
static core::stringc irrEmptyStringc("");
because it passes a null ptr into deallocate().
here´s the code change I made in irrallocator.h:-
Code: Select all
//! Deallocate memory for an array of objects
void deallocate(T* ptr)
{
// Robmar2012/02/11 fix
if ( ptr )
internal_delete(ptr);
}