If the Content Component calls a listener or callback from it’s destructor that then causes the Content Component to get cleared again, the ResizableWindow will double delete the content component.
ResizableWindow::clearContentComponent
should be implemented like this: