diff options
Diffstat (limited to '072scheduler.cc')
-rw-r--r-- | 072scheduler.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/072scheduler.cc b/072scheduler.cc index 945e0402..9a914cc5 100644 --- a/072scheduler.cc +++ b/072scheduler.cc @@ -52,7 +52,10 @@ vector<routine*> Routines; int Current_routine_index = 0; :(before "End Setup") Scheduling_interval = 500; +for (int i = 0; i < SIZE(Routines); ++i) + delete Routines.at(i); Routines.clear(); +Current_routine = NULL; :(replace{} "void run(const recipe_ordinal r)") void run(const recipe_ordinal r) { run(new routine(r)); @@ -114,12 +117,6 @@ string routine_label(routine* r) { return result.str(); } -:(before "End Teardown") -for (int i = 0; i < SIZE(Routines); ++i) - delete Routines.at(i); -Routines.clear(); -Current_routine = NULL; - //: special case for the very first routine :(replace{} "void run_main(int argc, char* argv[])") void run_main(int argc, char* argv[]) { |