Hi, your memory should be freed automatically once it goes out of scope. This includes program exiting. You can also ensure all memory associated with a dialog is released when you've finished with the dialog:
CDialog* myDialog = new CDialog;
myDialog->DoModal();
delete myDialog;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.