# HG changeset patch # User Jose Thachil # Date 1274265863 -3600 # Node ID 0f98da52363f90d90a69d190e40080b7d1aad028 # Parent a935d7985d666337eb0742701ed100ef0fe621d7 Delete EGL* from releaseEGL() in riMiEgl.cpp diff -r a935d7985d66 -r 0f98da52363f egl/eglrefimpl/src/session.cpp --- a/egl/eglrefimpl/src/session.cpp Wed May 19 10:29:09 2010 +0100 +++ b/egl/eglrefimpl/src/session.cpp Wed May 19 11:44:23 2010 +0100 @@ -80,7 +80,6 @@ CEglThreadSession::~CEglThreadSession() { - delete iEgl; CEglDriver::Close(); } diff -r a935d7985d66 -r 0f98da52363f egl/sfopenvg/riMiniEGL.cpp --- a/egl/sfopenvg/riMiniEGL.cpp Wed May 19 10:29:09 2010 +0100 +++ b/egl/sfopenvg/riMiniEGL.cpp Wed May 19 11:44:23 2010 +0100 @@ -430,8 +430,6 @@ return NULL; } return es->getEgl(); - - } static void releaseEGL() { @@ -445,11 +443,14 @@ } } */ - EGL* pEgl = static_cast(Dll::Tls()); - if (pEgl) - delete pEgl; + CEglThreadSession* es = reinterpret_cast(Dll::Tls()); + if (es) + { + EGL* pEgl = es->getEgl(); + if (pEgl) + delete pEgl; + } Dll::SetTls(NULL); - } /*-------------------------------------------------------------------*//*!