ecore-evas-x: Fix resource leak from eina_str_split_full usage

@bugfix: This fixes Coverity CID 1188012

Coverity reported resource leak from eina_str_split_full return which
was only being freed if the number was > 0. This is incorrect as
eina_str_split_full will still allocate the array and thus it should
be freed.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-05 14:36:39 +00:00
parent 8e48e864ae
commit 58c5edd9af
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ _ecore_evas_x_aux_hints_supprted_update(Ecore_Evas *ee)
eina_list_append(ee->prop.aux_hint.supported_list, hint);
}
if (num > 0)
if ((str) && (str[0]))
{
free(str[0]);
free(str);