Delete notification before removing from vector
This commit is contained in:
parent
02e09224e0
commit
1c60ce25ee
@ -849,8 +849,8 @@ void GameModel::RemoveNotification(Notification * notification)
|
|||||||
{
|
{
|
||||||
if(*iter == notification)
|
if(*iter == notification)
|
||||||
{
|
{
|
||||||
notifications.erase(iter);
|
|
||||||
delete *iter;
|
delete *iter;
|
||||||
|
notifications.erase(iter);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user