/* Free memory and exit the game */ void end_game(int err) { #ifdef WIN32 end_cleartype_fix(); // won't do anything unless fixcleartype is true #endif delete_and_clear(location); delete_and_clear(squad); delete_and_clear(weapontype); delete_and_clear(cliptype); delete_and_clear(armortype); delete_and_clear(loottype); delete_and_clear(creaturetype); delete_and_clear(augmenttype); delete_and_clear(vehicletype); delete_and_clear(vehicle); delete_and_clear(pool); delete_and_clear(sitemaps); delete_and_clear(recruit); delete_and_clear(date); delete_and_clear(groundloot); music.quit(); // shut down music endwin(); exit(err); }
WeaponType::~WeaponType() { delete_and_clear(attacks_); }
//----------------------------------------------------------------------------- // ~LLPolyMesh() //----------------------------------------------------------------------------- LLPolyMesh::~LLPolyMesh() { delete_and_clear(mJointRenderData); ll_aligned_free_16(mVertexData); }
Shop::~Shop() { delete_and_clear(options_); }