diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 21:20:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 21:20:03 +0400 |
commit | aa43a978c187e6f9e941279f7393cdc2eb399212 (patch) | |
tree | f10947fde74906d46726a069a55def6afb45b0f4 /source/gameengine | |
parent | 7e697846a51689fa9b2938cf68ae7ab1d95b2c2a (diff) |
fix memory leak in KX_ObstacleSimulation
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_ObstacleSimulation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_ObstacleSimulation.cpp b/source/gameengine/Ketsji/KX_ObstacleSimulation.cpp index d1fef171096..456f5f8af3b 100644 --- a/source/gameengine/Ketsji/KX_ObstacleSimulation.cpp +++ b/source/gameengine/Ketsji/KX_ObstacleSimulation.cpp @@ -812,6 +812,8 @@ void KX_ObstacleSimulationTOI_cells::sampleRVO(KX_Obstacle* activeObst, KX_NavMe } copy_v2_v2(activeObst->nvel, res); } + + delete [] spos; } KX_ObstacleSimulationTOI_cells::KX_ObstacleSimulationTOI_cells(MT_Scalar levelHeight, bool enableVisualization) |