I am writting a firewire video processing program and on each frame, I create a new structure with
struct PP *State = new PP
then I fill the struct as needed. After that, I laod it, push_back(State), onto a vector. I never delete it because I thought when I call ...new PP again for the next frame, it overwrites the old structure. Is this true? Or am I taking up RAM? Is it that eventhough I dynamically allocate the same structure on each frame, it is not created in the same memory spot? Let me know how this works with regards to where the structure is stored in memory & where the next structure is stored.
Thanks!