summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@nokia.com>2009-11-12 11:11:59 (GMT)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>2009-11-12 11:11:59 (GMT)
commit951603e7e585bc8891a198f8333a82e058f9cdd4 (patch)
treeea4ac8aa425022f43806e6bd9428d2c208fd8e78 /src/opengl
parentc785d92153d23b836451b0643424b9871bcc4be9 (diff)
downloadQt-951603e7e585bc8891a198f8333a82e058f9cdd4.zip
Qt-951603e7e585bc8891a198f8333a82e058f9cdd4.tar.gz
Qt-951603e7e585bc8891a198f8333a82e058f9cdd4.tar.bz2
Fix memory leak.
Revby: Gunnar
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_mac.mm b/src/opengl/qgl_mac.mm
index 063082b..4dd822d 100644
--- a/src/opengl/qgl_mac.mm
+++ b/src/opengl/qgl_mac.mm
@@ -460,6 +460,7 @@ void QGLContext::reset()
if (d->cx)
aglDestroyContext((AGLContext)d->cx);
#else
+ QMacCocoaAutoReleasePool pool;
[static_cast<NSOpenGLContext *>(d->cx) release];
#endif
d->cx = 0;