e randr - fix leak of modes list in randr code

this fixes a leak of the modes list in randr

@fix
This commit is contained in:
Carsten Haitzler 2015-12-07 20:01:03 +09:00
parent 58d5c6d3f6
commit 1fa0c79662
1 changed files with 4 additions and 1 deletions

View File

@ -813,7 +813,10 @@ again:
{
// one of the common modes matches the base config - we are ok
if ((m->w == sbase->config.mode.w) && (m->h == sbase->config.mode.h))
return;
{
modes = eina_list_free(modes);
return;
}
}
// find a common mode since current config doesn't match
EINA_LIST_FOREACH(modes, l, m)