Make some examples free their memory when finished
This commit is contained in:
@@ -50,5 +50,6 @@ int main (int argc, char *argv[])
|
||||
std::cout << "x=" << pos.x << ", y=" << pos.y << ", z=" << pos.z << std::endl;
|
||||
}
|
||||
|
||||
Simulator::Destroy ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -37,5 +37,6 @@ int main (int argc, char *argv[])
|
||||
|
||||
Simulator::Run ();
|
||||
|
||||
Simulator::Destroy ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -46,5 +46,6 @@ int main (int argc, char *argv[])
|
||||
|
||||
Simulator::Run ();
|
||||
|
||||
Simulator::Destroy ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user