Avoid possible memory leak in the mInterMessageBoxe field

pull/593/head
Andrei Kortunov 4 years ago
parent 8e5f26c109
commit a80ee7a76a

@ -28,10 +28,7 @@ namespace MWGui
MessageBoxManager::~MessageBoxManager () MessageBoxManager::~MessageBoxManager ()
{ {
for (MessageBox* messageBox : mMessageBoxes) MessageBoxManager::clear();
{
delete messageBox;
}
} }
int MessageBoxManager::getMessagesCount() int MessageBoxManager::getMessagesCount()

Loading…
Cancel
Save