diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-03-20 08:33:01 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-03-20 14:10:03 +0100 |
commit | 7af678178e92c6e7cb419891160263cb04edea28 (patch) | |
tree | f3df250f1d342ce6c82a2f7a3cb0ca4908ca9b84 /vcl | |
parent | ff51dcfcf2aeb1efd6dc94010ea646b13d697b1a (diff) |
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
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/svmain.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 1f597e5eb404..fdf2b9f28a34 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -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; } |