forked from enlightenment/efl
Fix memleak reported by Coverity
NB: Fixes Coverity CID1039272 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
0d12ab48be
commit
d7193f2830
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue