Does Deallocate have to be used per case?

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

Post Reply
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Does Deallocate have to be used per case?

Post by Mentat » Sat Jan 19, 2008 8:46 am

Is there a way to just wipe out everything allocated with just one swipe?
For any grievances posted above, I blame whoever is in charge . . .

coderJeff
Coder
Posts: 16
Joined: Tue Jan 08, 2008 8:14 am

Post by coderJeff » Thu Jan 24, 2008 1:39 pm

No, if you are doing your own allocations, you must remember to free the memory for each one. Allocate/Deallocate is not managed in any way.

User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat » Thu Jan 24, 2008 2:38 pm

Ok. Must all pointers be properly destroyed, or are they taken care of?
For any grievances posted above, I blame whoever is in charge . . .

Post Reply