From 951603e7e585bc8891a198f8333a82e058f9cdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Thu, 12 Nov 2009 12:11:59 +0100 Subject: Fix memory leak. Revby: Gunnar --- src/opengl/qgl_mac.mm | 1 + 1 file changed, 1 insertion(+) 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(d->cx) release]; #endif d->cx = 0; -- cgit v0.12