Kaydet (Commit) 7af67817 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

opengl dr.memory: Avoid double delete.

The context is deleted via OpenGLSalGraphicsImpl::~OpenGLSalGraphicsImpl later,
doing it already here leads to a double delete and a crash.

Change-Id: Icf1bed81501b5ac67ef60901eaa73e5ee5540a9f
üst ff51dcfc
......@@ -442,15 +442,6 @@ void DeInitVCL()
}
if ( pSVData->mpDefaultWin )
{
OpenGLContext* pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext();
if( pContext )
{
#ifdef DBG_UTIL
pContext->DeRef(NULL);
#else
pContext->DeRef();
#endif
}
delete pSVData->mpDefaultWin;
pSVData->mpDefaultWin = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment