Delete notification before removing from vector

This commit is contained in:
Simon Robertshaw 2012-09-30 18:40:10 +01:00
parent 02e09224e0
commit 1c60ce25ee

View File

@ -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;
} }
} }