Fixed memory leak in GlxContext when creating an OpenGL 3 context

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1579 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2010-10-12 09:25:53 +00:00
parent 535b7bc839
commit 0354c306e3

View File

@ -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