1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:23:51 +00:00

Avoid possible memory leak in the mInterMessageBoxe field

This commit is contained in:
Andrei Kortunov 2021-01-09 14:43:00 +04:00
parent 8e5f26c109
commit a80ee7a76a

View file

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