From edac8b54812a99708ef507db6018fa828dcad084 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 18 Jun 2012 15:32:15 +0100 Subject: [PATCH] Free tools --- src/simulation/Simulation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 1b9a85928..7c8241944 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -4232,6 +4232,8 @@ Simulation::~Simulation() delete[] platent; delete grav; delete air; + for(int i = 0; i < tools.size(); i++) + delete tools[i]; } Simulation::Simulation():