Yes, if you load a texture, and then stick the pointer into button\texture, then before you load a new texture and stick the pointer to that one into button\texture, you should free the old texture, or else you will have a texture in memory which is taking up space, and no pointer to it so that you can free it at a later time.
Blitz will free up whatever you don't when your program ends, but if your program runs for a while and you keep doing this, you will have what is called a memory leak... More and more ram getting filled up with useless data that you never free, and eventually you might run out of ram and possibly crash the system, or at least, your system will slow down until you end the program.
|