summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:56:45 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-08 22:56:45 (GMT)
commitef8d9fa7091b0d45fe15aae43b8f1c47547cb16d (patch)
treec00c5e910740990b0c31d2551db17046e8cc9aca /src
parent46843022acd7322c42a98858ec52b65ce7451d06 (diff)
downloadQt-ef8d9fa7091b0d45fe15aae43b8f1c47547cb16d.zip
Qt-ef8d9fa7091b0d45fe15aae43b8f1c47547cb16d.tar.gz
Qt-ef8d9fa7091b0d45fe15aae43b8f1c47547cb16d.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp
index c2ba4a5..2b5e2f5 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;
}