forked from enlightenment/efl
ecore_x: fix memory leak
fix memory leak in xcb event handler. @fix
This commit is contained in:
parent
861165c49d
commit
d0d9747853
|
@ -259,6 +259,8 @@ ecore_x_e_window_profile_get(Ecore_X_Window win)
|
|||
if (atom)
|
||||
profile = ecore_x_atom_name_get(atom[0]);
|
||||
|
||||
if (data) free(data);
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
|
|
|
@ -1491,6 +1491,7 @@ _ecore_xcb_event_handle_client_message(xcb_generic_event_t *event)
|
|||
e->types[i] = ecore_x_atom_name_get(types[i]);
|
||||
}
|
||||
e->num_types = num_ret;
|
||||
if (data) free(data);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue