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:
Stefan Schmidt 2013-01-23 09:51:47 +00:00
parent b9d18d770b
commit 4cc93b9f2c
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1368,7 +1368,11 @@ ecore_x_e_window_available_profiles_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))
{
if (data)
free(data);
return EINA_FALSE;
}
if (count)
*count = num;