Fix memleak reported by Coverity

NB: Fixes Coverity CID1039272

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 12:27:40 +01:00
parent 0d12ab48be
commit d7193f2830
1 changed files with 4 additions and 1 deletions

View File

@ -1174,7 +1174,10 @@ ecore_x_e_window_profile_list_get(Ecore_X_Window win,
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST,
XA_ATOM, 32, &data, &num))
return EINA_FALSE;
{
if (data) free(data);
return EINA_FALSE;
}
if (ret_num)
*ret_num = num;