CEGPropertyGrid::~CEGPropertyGrid() { DeleteAllItems(); s_nInstanceCount--; // free global resource when ALL CEGPropertyGrids are destroyed if (!s_nInstanceCount) FreeGlobalResources(); }
CPropTree::~CPropTree() { DeleteAllItems(); s_nInstanceCount--; // free global resource when ALL CPropTrees are destroyed if (!s_nInstanceCount) FreeGlobalResources(); }