ObjectTitle::~ObjectTitle()
{
    OverlayManager *overlayManager = OverlayManager::getSingletonPtr();
    container->removeChild(textArea->getName());
    overlay->remove2D(container);
    overlayManager->destroyOverlayElement(textArea);
    overlayManager->destroyOverlayElement(container);
    overlayManager->destroy(overlay);
}
Example #2
0
int main(int argc, char* argv[]) 
{
   OverlayManager a;

   OverlayElement* oePtr;
   a.destroyOverlayElement(oePtr);

   std::cout << "done" << std::endl;
}