summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-30 17:40:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-30 17:40:10 (GMT)
commit1c60ce25ee2fe15cc4bfa0649853bf6a0b95c14d (patch)
tree7f932ec69fdefc6182c69a51809f92ae3122faa5 /src/game/GameModel.cpp
parent02e09224e02da7dcd55e4b85a9d2ee993a844206 (diff)
downloadpowder-1c60ce25ee2fe15cc4bfa0649853bf6a0b95c14d.zip
powder-1c60ce25ee2fe15cc4bfa0649853bf6a0b95c14d.tar.gz
Delete notification before removing from vector
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 15dfad1..05dc7fb 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -849,8 +849,8 @@ void GameModel::RemoveNotification(Notification * notification)
{
if(*iter == notification)
{
- notifications.erase(iter);
delete *iter;
+ notifications.erase(iter);
break;
}
}