diff --git a/src/SFML/Window/Linux/GlxContext.cpp b/src/SFML/Window/Linux/GlxContext.cpp index 28d24d02..7b15fee4 100644 --- a/src/SFML/Window/Linux/GlxContext.cpp +++ b/src/SFML/Window/Linux/GlxContext.cpp @@ -244,6 +244,9 @@ void GlxContext::CreateContext(GlxContext* shared, unsigned int bitsPerPixel, co }; myContext = glXCreateContextAttribsARB(myDisplay, configs[0], toShare, true, attributes); } + + if (configs) + XFree(configs); } // If we couldn't create an OpenGL 3 context, adjust the settings