There are some macros to work with memory in KGE.
Use this macros to allocate memory with nedmalloc library which is more faster and KGE can Track Memory for you.
Example
// Allocate memory and calls the constructor pLogger = KGE_NEW(kge::io::Logger)(); // Delete pointer and calls the destructor KGE_DELETE(pLogger, Logger);