[Bf-blender-cvs] [84c44e0] master: Fix leak in ContextGLX

Campbell Barton noreply at git.blender.org
Thu Sep 10 18:39:24 CEST 2015


Commit: 84c44e026e09a6817f604af1f115c1ebc3297d0b
Author: Campbell Barton
Date:   Fri Sep 11 01:48:31 2015 +1000
Branches: master
https://developer.blender.org/rB84c44e026e09a6817f604af1f115c1ebc3297d0b

Fix leak in ContextGLX

===================================================================

M	intern/ghost/intern/GHOST_ContextGLX.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 6d26666..02b43ab 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -246,6 +246,7 @@ GHOST_TSuccess GHOST_ContextGLX::initializeDrawingContext()
 
 		if (framebuffer_config) {
 			m_context = glXCreateContextAttribsARB(m_display, framebuffer_config[0], s_sharedContext, True, attribs);
+			XFree(framebuffer_config);
 		}
 	}
 	else {




More information about the Bf-blender-cvs mailing list