Better way to delete CEglThreadSession.
--- a/egl/eglrefimpl/src/session.cpp Wed May 19 11:44:23 2010 +0100
+++ b/egl/eglrefimpl/src/session.cpp Wed May 19 14:34:22 2010 +0100
@@ -80,6 +80,7 @@
CEglThreadSession::~CEglThreadSession()
{
+ delete iEgl;
CEglDriver::Close();
}
--- a/egl/sfopenvg/riMiniEGL.cpp Wed May 19 11:44:23 2010 +0100
+++ b/egl/sfopenvg/riMiniEGL.cpp Wed May 19 14:34:22 2010 +0100
@@ -443,12 +443,11 @@
}
}
*/
+ RDebug::Printf("I am in releaseEGL ");
CEglThreadSession* es = reinterpret_cast<CEglThreadSession*>(Dll::Tls());
if (es)
{
- EGL* pEgl = es->getEgl();
- if (pEgl)
- delete pEgl;
+ delete es;
}
Dll::SetTls(NULL);
}