Evas GL_X11: Fix memory leak

This commit is contained in:
Jean-Philippe Andre 2015-04-20 11:44:27 +09:00
parent c650282285
commit 6e587b5479
1 changed files with 2 additions and 0 deletions

View File

@ -1109,6 +1109,7 @@ try_again:
{
ERR("glXChooseFBConfig() can't find any configs (alpha: %d, depth: %d, stencil: %d, msaa: %d)",
alpha, depth_bits, stencil_bits, msaa_samples);
if (configs) XFree(configs);
if ((depth_bits > 24) || (stencil_bits > 8))
{
WRN("Please note that your driver might not support 32-bit depth or "
@ -1187,6 +1188,7 @@ try_again:
XFree(visinfo);
}
XFree(configs);
if (!found)
{
ERR("Could not find a matching config. Now what?");