If I have a function called Test() which does the following:
MyClass* pMyClass = new MyClass();
And it does not delete that allocated memory, is the memory freed when the program ends or does it remain allocated and until RAM is "purged", like reboot, shutdown, etc? How long does that allocation remain in memory?
Thanks,
Patrick
MyClass* pMyClass = new MyClass();
And it does not delete that allocated memory, is the memory freed when the program ends or does it remain allocated and until RAM is "purged", like reboot, shutdown, etc? How long does that allocation remain in memory?
Thanks,
Patrick