summaryrefslogtreecommitdiff
path: root/src/game/GameModel.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-18 14:27:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-18 14:27:57 (GMT)
commit9d7a4e55f2a651ea8e420aab2cc5fa78998c1ddc (patch)
treed05b086e0d4a539fd0aef79dbcd6e09f574bcc52 /src/game/GameModel.cpp
parent741392f2c1c2de8134e4b76a288d1e8b711526cd (diff)
downloadpowder-9d7a4e55f2a651ea8e420aab2cc5fa78998c1ddc.zip
powder-9d7a4e55f2a651ea8e420aab2cc5fa78998c1ddc.tar.gz
Menu frees any added items
Diffstat (limited to 'src/game/GameModel.cpp')
-rw-r--r--src/game/GameModel.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 5c9344d..cf9324b 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -170,10 +170,6 @@ GameModel::~GameModel()
for(int i = 0; i < menuList.size(); i++)
{
- for(int j = 0; i < menuList[i]->GetToolList().size(); i++)
- {
- delete menuList[i]->GetToolList()[j];
- }
delete menuList[i];
}
for(int i = 0; i < brushList.size(); i++)