Make some examples free their memory when finished

This commit is contained in:
Mitch Watrous
2011-04-20 09:17:16 -07:00
parent 534e71f5f6
commit 4daaf0abf4
3 changed files with 3 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -37,5 +37,6 @@ int main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
return 0;
}

View File

@@ -46,5 +46,6 @@ int main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
return 0;
}