From b56686b9b7185777ac80aaef6f7aa4295a8f13db Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 Nov 2015 13:42:31 +0100 Subject: [PATCH] Changed: Release modes list under OS X --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 8cfd26228..36ac67281 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -2050,6 +2050,10 @@ bool CDriverGL::getModes(std::vector &modes) // nldebug(" Display 0x%x: Mode %dx%d, %d BPP", dspy, w, h, bpp); } } + +#ifdef NL_MAC_VERSION_10_6_UP + CFRelease(modeList); +#endif } #elif defined (NL_OS_UNIX)