evas - fix access-after-free number 2

follow on from 3aa250e17f and T8534
looking into more possible problems and fixes

@fix
This commit is contained in:
Carsten Haitzler 2020-01-18 12:25:08 +00:00
parent de4a698c96
commit 7eeeb3c6f9
1 changed files with 2 additions and 2 deletions

View File

@ -1499,9 +1499,9 @@ _evas_pointer_data_remove(Evas_Public_Data *edata, Evas_Device *pointer, Eina_Bo
}
EINA_SAFETY_ON_NULL_RETURN(hit);
if (hit->pointers) return;
eina_list_free(hit->object.in);
hit->object.in = eina_list_free(hit->object.in);
edata->seats = eina_inlist_remove(edata->seats, EINA_INLIST_GET(hit));
free(hit);
if (!nofree) free(hit);
}
Eina_List *