From 6a40d94db4264367ed207cb806480eb63d65a27e Mon Sep 17 00:00:00 2001 From: Yochai Shefi Simchon Date: Mon, 13 Jun 2011 14:07:36 +0300 Subject: [PATCH] Fix segfault when destroying context m_texCoords was not initialized in the GLEScontext constructor, so when destructing it resulted in an illegal free. --- .../opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp index 954fad485..f40525d9c 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp @@ -34,7 +34,7 @@ void GLEScmContext::init() { m_initialized = true; } -GLEScmContext::GLEScmContext():GLEScontext(),m_pointsIndex(-1), m_clientActiveTexture(0) { +GLEScmContext::GLEScmContext():GLEScontext(),m_texCoords(NULL),m_pointsIndex(-1), m_clientActiveTexture(0) { m_map[GL_COLOR_ARRAY] = new GLESpointer(); m_map[GL_NORMAL_ARRAY] = new GLESpointer();