exactness: Make sure image valid before usage....

dh
This commit is contained in:
Christopher Michael 2021-06-28 00:14:49 -04:00
parent ffc6c33dd8
commit 868a5c28ff
1 changed files with 7 additions and 3 deletions

View File

@ -206,9 +206,13 @@ _shot_do(Evas *e)
else if (_dest_type == FTYPE_EXU) else if (_dest_type == FTYPE_EXU)
{ {
Exactness_Image *ex_img = malloc(sizeof(*ex_img)); Exactness_Image *ex_img = malloc(sizeof(*ex_img));
_dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img);
_dest_unit->nb_shots++; if (ex_img)
e_data = ex_img; {
_dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img);
_dest_unit->nb_shots++;
e_data = ex_img;
}
} }
else if (_dest_type == FTYPE_REMOTE) else if (_dest_type == FTYPE_REMOTE)
{ {