X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fcommandinterpreter.cpp;h=b8a10a99d03cb0f30a4048c4754f370d42f09f8b;hp=d3db5a49412ad8b19f01b55702b9fbf19f0cd898;hb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;hpb=efd709c6cdac15b7823e80ed64e448003aea835d diff --git a/source/commandinterpreter.cpp b/source/commandinterpreter.cpp index d3db5a4..b8a10a9 100644 --- a/source/commandinterpreter.cpp +++ b/source/commandinterpreter.cpp @@ -53,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(' ');