fix memory leaks

This commit is contained in:
Mathieu Lacage
2006-12-11 18:56:11 +01:00
parent 7d8437b78f
commit dcd8c74ae8
2 changed files with 5 additions and 1 deletions

View File

@@ -212,6 +212,8 @@ VariableTracerTest::RunUnsignedTests (void)
utmp &= 1;
utmp |= 1;
utmp ^= 1;
delete foo;
}
void

View File

@@ -638,7 +638,9 @@ SimulatorTests::RunTests (void)
Simulator::ScheduleDestroy (&SimulatorTests::bar3, this, 0, 0, 0);
Simulator::ScheduleDestroy (&SimulatorTests::bar4, this, 0, 0, 0, 0);
Simulator::ScheduleDestroy (&SimulatorTests::bar5, this, 0, 0, 0, 0, 0);
Simulator::Run ();
Simulator::Destroy ();
return ok;
}