From 0f4d00dbdafb659f9e122b663b5dfdbb2916b38f Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 11 Feb 2013 14:36:05 +0000 Subject: [PATCH] Code Cleanup: RideFileCommand .. fix small memory leak on command stack. --- src/RideFileCommand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RideFileCommand.cpp b/src/RideFileCommand.cpp index 81aff8c1b..0f3934011 100644 --- a/src/RideFileCommand.cpp +++ b/src/RideFileCommand.cpp @@ -150,8 +150,9 @@ RideFileCommand::doCommand(RideCommand *cmd, bool noexec) // place onto stack if (stack.count()) { + // wipe away commands we can no longer redo + for (int i=stackptr; i