class problems

Started by
10 comments, last by Khatharr 11 years ago

How come you don't delete gameInstance?

Advertisement

How come you don't delete gameInstance?

The page it exists in will be freed when the application terminates. It's good form to do it anyway, but on most platforms it's not necessary in a case like this.

The real question is why it's dynamically allocated in the first place.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

This topic is closed to new replies.

Advertisement