diff options
-rw-r--r-- | vcl/inc/openglgdiimpl.hxx | 2 | ||||
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index 7bc6644fdc48..aa55b970e64c 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -74,7 +74,7 @@ protected: OpenGLProgram* mpProgram; /// This idle handler is used to swap buffers after rendering. - OpenGLFlushIdle *mpFlush; + std::unique_ptr<OpenGLFlushIdle> mpFlush; // clipping vcl::Region maClipRegion; diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 608b28dbb927..afe0157c520a 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -94,7 +94,7 @@ OpenGLSalGraphicsImpl::~OpenGLSalGraphicsImpl() if( !IsOffscreen() && mnDrawCountAtFlush != mnDrawCount ) VCL_GL_INFO( "Destroying un-flushed on-screen graphics" ); - delete mpFlush; + mpFlush.reset(); ReleaseContext(); } |