1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00
openrw/tests
Anonymous Maarten 8e98cf2311 rwengine: Pass CharacterController to the CharacterObject constructor
The CharacterObject should remove the CharacterController upon
destruction.

Should fix this memory leak:
==31441== 480 (360 direct, 120 indirect) bytes in 5 blocks are definitely lost in loss record 2,038 of 2,723
==31441==    at 0x4C2F1CA: operator new(unsigned long) (vg_replace_malloc.c:334)
==31441==    by 0x7E2370: GameWorld::createPedestrian(unsigned short, glm::tvec3<float, (glm::precision)0> const&, glm::tquat<float, (glm::precision)0> const&, unsigned int) (GameWorld.cpp:334)
==31441==    by 0x8E2F01: TrafficDirector::populateNearby(ViewCamera const&, float, int) (TrafficDirector.cpp:164)
==31441==    by 0x7E1170: GameWorld::createTraffic(ViewCamera const&) (GameWorld.cpp:176)
==31441==    by 0x75C616: RWGame::tick(float) (RWGame.cpp:531)
==31441==    by 0x75BF18: RWGame::run() (RWGame.cpp:420)
==31441==    by 0x749184: main (main.cpp:15)
2017-10-18 21:52:29 +01:00
..
CMakeLists.txt tests: only include GameConfig.hpp in source file (no header file) 2017-08-15 15:58:01 +01:00
main.cpp tests: set the test module name to openrw 2017-02-20 01:01:30 +00:00
test_animation.cpp rwlib/rwengine: Use AnimationPtr instead of Animation* 2017-10-18 21:52:29 +01:00
test_archive.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_buoyancy.cpp Overhaul Model data handling to improve accuracy 2016-09-27 22:48:45 +01:00
test_character.cpp rwengine: Pass CharacterController to the CharacterObject constructor 2017-10-18 21:52:29 +01:00
test_chase.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_config.cpp config: add test about non-existing configuration directory 2017-08-15 15:58:01 +01:00
test_cutscene.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_data.cpp Load and associate model data when creating objects 2016-09-27 22:49:07 +01:00
test_FileIndex.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_GameData.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_GameWorld.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_globals.cpp tests: only include GameConfig.hpp in source file (no header file) 2017-08-15 15:58:01 +01:00
test_globals.hpp tests: only include GameConfig.hpp in source file (no header file) 2017-08-15 15:58:01 +01:00
test_Input.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_items.cpp Remove InventoryItem and WeaponItem 2016-10-19 22:14:52 +01:00
test_lifetime.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_loaderdff.cpp rwlib: Use ClumpPtr instead of Clump* 2017-10-18 21:52:29 +01:00
test_LoaderIPL.cpp Implement Hierarchy of game ZoneData 2017-01-30 00:24:44 +00:00
test_Logger.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_menu.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_object_data.cpp Load and associated pedstats with ped models 2017-02-08 20:30:29 +00:00
test_object.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_pickup.cpp Remove InventoryItem and WeaponItem 2016-10-19 22:14:52 +01:00
test_renderer.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_rwbstream.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_SaveGame.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_scriptmachine.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_state.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_text.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_trafficdirector.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_vehicle.cpp Remove all traces of Skeleton 2017-02-08 21:45:01 +00:00
test_VisualFX.cpp tests: only include test_globals.hpp when needed 2017-08-15 15:58:01 +01:00
test_weapon.cpp Remove InventoryItem and WeaponItem 2016-10-19 22:14:52 +01:00
test_world.cpp clang-format files in tests 2016-09-09 21:13:22 +01:00
test_ZoneData.cpp Implement Hierarchy of game ZoneData 2017-01-30 00:24:44 +00:00