summaryrefslogtreecommitdiff
path: root/src/bin/exactness
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2021-06-28 00:14:49 -0400
committerChristopher Michael <devilhorns@comcast.net>2021-06-28 00:14:49 -0400
commit868a5c28ff73adcdd913bc58c44cb558ebd1f974 (patch)
tree8c7ce4e494da4dd24f91ecb907347ebe26afdbd0 /src/bin/exactness
parentffc6c33dd84b344f18fe00a835017a824499ed06 (diff)
exactness: Make sure image valid before usage....
dh
Diffstat (limited to 'src/bin/exactness')
-rw-r--r--src/bin/exactness/player.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c
index ed493a521d..66506ba729 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -206,9 +206,13 @@ _shot_do(Evas *e)
206 else if (_dest_type == FTYPE_EXU) 206 else if (_dest_type == FTYPE_EXU)
207 { 207 {
208 Exactness_Image *ex_img = malloc(sizeof(*ex_img)); 208 Exactness_Image *ex_img = malloc(sizeof(*ex_img));
209 _dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img); 209
210 _dest_unit->nb_shots++; 210 if (ex_img)
211 e_data = ex_img; 211 {
212 _dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img);
213 _dest_unit->nb_shots++;
214 e_data = ex_img;
215 }
212 } 216 }
213 else if (_dest_type == FTYPE_REMOTE) 217 else if (_dest_type == FTYPE_REMOTE)
214 { 218 {