diff options
Diffstat (limited to 'vcl/unx/generic/window/salframe.cxx')
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 2693580071a9..965d3b80f2c6 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -893,8 +893,8 @@ X11SalFrame::~X11SalFrame() } // reset all OpenGL contexts using this window - OpenGLContext* pContext = ImplGetSVData()->maGDIData.mpLastContext; - while( pContext ) + rtl::Reference<OpenGLContext> pContext = ImplGetSVData()->maGDIData.mpLastContext; + while( pContext.is() ) { if( pContext->getOpenGLWindow().win == mhWindow ) pContext->reset(); |