summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/gl_surface_qt.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp
index cc2809af1..bc1b8b399 100644
--- a/src/core/gl_surface_qt.cpp
+++ b/src/core/gl_surface_qt.cpp
@@ -262,7 +262,7 @@ protected:
~GLSurfaceQtWGL();
private:
- PbufferGLSurfaceWGL *m_surfaceBuffer;
+ scoped_refptr<PbufferGLSurfaceWGL> m_surfaceBuffer;
DISALLOW_COPY_AND_ASSIGN(GLSurfaceQtWGL);
};
@@ -291,10 +291,7 @@ bool GLSurfaceQtWGL::Initialize()
void GLSurfaceQtWGL::Destroy()
{
- if (m_surfaceBuffer) {
- delete m_surfaceBuffer;
- m_surfaceBuffer = 0;
- }
+ m_surfaceBuffer = 0;
}
void *GLSurfaceQtWGL::GetHandle()