diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-09 08:56:45 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-10-09 08:56:45 +1000 |
commit | ef8d9fa7091b0d45fe15aae43b8f1c47547cb16d (patch) | |
tree | c00c5e910740990b0c31d2551db17046e8cc9aca /src | |
parent | 46843022acd7322c42a98858ec52b65ce7451d06 (diff) |
Prevent double-destroy of a pbuffer's EGLSurface
Fixing the surface memory leak in b125af1b for widgets caused this
knock-on effect in pbuffers.
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/qglpixelbuffer_egl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp index c2ba4a5e90..2b5e2f5b1a 100644 --- a/src/opengl/qglpixelbuffer_egl.cpp +++ b/src/opengl/qglpixelbuffer_egl.cpp @@ -151,7 +151,7 @@ bool QGLPixelBufferPrivate::init(const QSize &size, const QGLFormat &f, QGLWidge bool QGLPixelBufferPrivate::cleanup() { - eglDestroySurface(QEglContext::defaultDisplay(0), pbuf); + // No need to destroy "pbuf" here - it is done in QGLContext::reset(). return true; } |