diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 16:10:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 10:16:35 +0200 |
commit | fa286c8934745410aee34ee61ff2b44a67b5e36c (patch) | |
tree | d1b02c7bbdf4d4ee54f70b46d78ef1cddd145894 /vcl/opengl | |
parent | 2ea733e525773e5631210e9503fd8415a72c2ea9 (diff) |
loplugin:useuniqueptr in OpenGLSalGraphicsImpl
Change-Id: I0d0e4da9c081c890ffd7dcaf051e3a3900345c35
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |