mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Avoid possible memory leak in the mInterMessageBoxe field
This commit is contained in:
parent
8e5f26c109
commit
a80ee7a76a
@ -28,10 +28,7 @@ namespace MWGui
|
||||
|
||||
MessageBoxManager::~MessageBoxManager ()
|
||||
{
|
||||
for (MessageBox* messageBox : mMessageBoxes)
|
||||
{
|
||||
delete messageBox;
|
||||
}
|
||||
MessageBoxManager::clear();
|
||||
}
|
||||
|
||||
int MessageBoxManager::getMessagesCount()
|
||||
|
Loading…
x
Reference in New Issue
Block a user