Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-04 21:20:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-04 21:20:03 +0400
commitaa43a978c187e6f9e941279f7393cdc2eb399212 (patch)
treef10947fde74906d46726a069a55def6afb45b0f4 /source/gameengine
parent7e697846a51689fa9b2938cf68ae7ab1d95b2c2a (diff)
fix memory leak in KX_ObstacleSimulation
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_ObstacleSimulation.cpp2
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)