From 1c60ce25ee2fe15cc4bfa0649853bf6a0b95c14d Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 30 Sep 2012 18:40:10 +0100 Subject: Delete notification before removing from vector 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; } } -- cgit v0.9.2-21-gd62e