A 'new' was used when setting up the TypeRegistry singleton and it wasn't removed at the end of the program. Now using a unique_ptr instead.
TypeRegistry
unique_ptr