Implementing the Folder Destructor
The folder's destructor needs to perform the following MAPI-specific tasks:
-
If the folder still has a contents table, call the table's Release method and set the pointer to the table to NULL.
-
Call the Release method on the status object and logon object, and set the pointers to those objects to NULL.
As usual, the destructor must also free any additional memory allocated by the folder.