diff options
| author | Simon 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) |
| commit | 1c60ce25ee2fe15cc4bfa0649853bf6a0b95c14d (patch) | |
| tree | 7f932ec69fdefc6182c69a51809f92ae3122faa5 /src/game/GameModel.cpp | |
| parent | 02e09224e02da7dcd55e4b85a9d2ee993a844206 (diff) | |
| download | powder-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.cpp | 2 |
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; } } |
