X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcommandinterpreter.cpp;h=b8a10a99d03cb0f30a4048c4754f370d42f09f8b;hb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;hp=301535048bd6e8bcfe6084344b7aef248860ec65;hpb=81f1ddee977603293d0c5710f2db69130dac6a96;p=gldbg.git diff --git a/source/commandinterpreter.cpp b/source/commandinterpreter.cpp index 3015350..b8a10a9 100644 --- a/source/commandinterpreter.cpp +++ b/source/commandinterpreter.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of gldbg -Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the GPL -*/ - #include #include #include @@ -60,6 +53,12 @@ CommandInterpreter::CommandInterpreter(GlDbg &d): } +CommandInterpreter::~CommandInterpreter() +{ + for(CommandMap::iterator i=commands.begin(); i!=commands.end(); ++i) + delete i->second; +} + void CommandInterpreter::execute(const string &cmd) { unsigned space = cmd.find(' ');