fix memory leaks
This commit is contained in:
@@ -212,6 +212,8 @@ VariableTracerTest::RunUnsignedTests (void)
|
||||
utmp &= 1;
|
||||
utmp |= 1;
|
||||
utmp ^= 1;
|
||||
|
||||
delete foo;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user