forked from enlightenment/efl
efl/ecore_x: Fix leak of data.
If we fail we still have the malloced data. Free it in this case. Bot commit for devilhors. SVN revision: 83135
This commit is contained in:
parent
b9d18d770b
commit
4cc93b9f2c
File diff suppressed because one or more lines are too long
|
@ -1368,7 +1368,11 @@ ecore_x_e_window_available_profiles_get(Ecore_X_Window win,
|
||||||
if (!ecore_x_window_prop_property_get(win,
|
if (!ecore_x_window_prop_property_get(win,
|
||||||
ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST,
|
ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST,
|
||||||
XA_ATOM, 32, &data, &num))
|
XA_ATOM, 32, &data, &num))
|
||||||
|
{
|
||||||
|
if (data)
|
||||||
|
free(data);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (count)
|
if (count)
|
||||||
*count = num;
|
*count = num;
|
||||||
|
|
Loading…
Reference in New Issue