I saw in the code next statement:
SomeType someVar[1];
Later someVar is used as a pointer to SomeType. Why would one
someVar
SomeType
If you use SomeType*, you will need a new at some point and you will thus have to delete it to avoid leaks.
new
delete
Using SomeType[] allocates on the stack and the memory management will be handled for you.