What's the easiest (well not easiest), but best method for memory management if i'm allocating memory for structs, strings, arrays, etc.. Is there some way I could just store all the pointers in a linked list and cycle through it free'ing all the memory?
I actually have it set up in that way, but it is only set up for a single struct, i.e. the linked list only keeps track of the memory allocated for a struct, than free's everything automatically. Just wondering if there was a generic way to do it so i could manage all memory in an application. Is there a garbage collecting library, or something out there already that people use?
I guess it's kind of like in an OO language like java, using <generic> or "Object" to overshadow anything you might use, than using casting if you want to manipulate something. Just an easy way to group everything together.