forked from enlightenment/efl
ecore_event: fix ecore event handler iterator range
event handler start at 1 (see _ecore_event_message_handler_type_new and _ecore_event_message_handler_efl_object_constructor) so that handlers[0] is not allocated. this patch avoid invalid memory access. this fixes T7349 Differential Revision: https://phab.enlightenment.org/D6966
This commit is contained in:
parent
40cce4620e
commit
3f306491a3
|
@ -314,7 +314,7 @@ _ecore_event_message_handler_efl_object_destructor(Eo *obj, Ecore_Event_Message_
|
||||||
{
|
{
|
||||||
free(h);
|
free(h);
|
||||||
}
|
}
|
||||||
for (i = 0; i <= pd->event_type_count; i++)
|
for (i = 1; i <= pd->event_type_count; i++)
|
||||||
{
|
{
|
||||||
EINA_INLIST_FREE(pd->handlers[i], h)
|
EINA_INLIST_FREE(pd->handlers[i], h)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue