From 0c4033b4d118c270a5a27c1c6a428940e4c8b3d0 Mon Sep 17 00:00:00 2001 From: Pawel Date: Tue, 10 Dec 2013 14:05:08 +0400 Subject: [PATCH] 0024452: TKOpenGl - Memory leak in OpenGl_ShaderManager --- src/OpenGl/OpenGl_ShaderManager.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenGl/OpenGl_ShaderManager.cxx b/src/OpenGl/OpenGl_ShaderManager.cxx index 11a0ebe34f..d5ad6b9341 100644 --- a/src/OpenGl/OpenGl_ShaderManager.cxx +++ b/src/OpenGl/OpenGl_ShaderManager.cxx @@ -312,6 +312,7 @@ void OpenGl_ShaderManager::PushLightSourceState (const Handle(OpenGl_ShaderProgr OpenGLMaxLights * OpenGl_ShaderLightType::NbOfVec2i(), aLightTypeArray[0].Packed()); theProgram->UpdateState (OpenGl_LIGHT_SOURCES_STATE, myLightSourceState.Index()); + delete[] aLightTypeArray; return; }