forked from enlightenment/efl
ecore_x: No need to free NULL value.
NB: This reintroduces the Coverity Resouce Leak detected with CID1039276
Summary:
When ecore_x_window_prop_property_get returns 0, data is already NULL hence
no need to free NULL value. This fault was introduced in 45a2296218
while fixing coverity defects.
Reviewers: seoz, cedric, raster, devilhorns
Subscribers: cedric, seoz
Differential Revision: https://phab.enlightenment.org/D1473
This commit is contained in:
parent
c51dbe3a2c
commit
7a02b10573
|
@ -230,10 +230,7 @@ ecore_x_dnd_type_isset(Ecore_X_Window win,
|
|||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
if (!ecore_x_window_prop_property_get(win, ECORE_X_ATOM_XDND_TYPE_LIST,
|
||||
XA_ATOM, 32, &data, &num))
|
||||
{
|
||||
if (data) free(data);
|
||||
return ret;
|
||||
}
|
||||
return ret;
|
||||
|
||||
atom = ecore_x_atom_get(type);
|
||||
atoms = (Ecore_X_Atom *)data;
|
||||
|
|
Loading…
Reference in New Issue