From aa43a978c187e6f9e941279f7393cdc2eb399212 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 4 Aug 2013 17:20:03 +0000 Subject: [PATCH] fix memory leak in KX_ObstacleSimulation --- source/gameengine/Ketsji/KX_ObstacleSimulation.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)