branch | EGL_MERGE |
changeset 59 | 0fb7b31791c3 |
parent 58 | 5b9c23c1a54c |
child 60 | 013f1c757b1e |
--- a/egl/eglrefimpl/src/session.cpp Wed May 12 12:14:19 2010 +0100 +++ b/egl/eglrefimpl/src/session.cpp Wed May 12 13:05:33 2010 +0100 @@ -72,7 +72,8 @@ CEglThreadSession::CEglThreadSession(CEglDriver& aDriver): iDriver(aDriver), - iError(EGL_SUCCESS) + iError(EGL_SUCCESS), + iEgl(NULL) { Dll::SetTls( NULL ); } @@ -202,7 +203,8 @@ } catch(std::bad_alloc) { - RI_DELETE(pEgl); + RI_DELETE(iEgl); + iEgl = NULL; RI_DELETE(newDisplay); SetError(EGL_BAD_DISPLAY); return EGL_FALSE;