use a unique_ptr to avoid memory leak
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.
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.