devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=868a5c28ff73adcdd913bc58c44cb558ebd1f974

commit 868a5c28ff73adcdd913bc58c44cb558ebd1f974
Author: Christopher Michael <devilho...@comcast.net>
Date:   Mon Jun 28 00:14:49 2021 -0400

    exactness: Make sure image valid before usage....
    
    dh
---
 src/bin/exactness/player.c | 10 +++++++---
 1 file 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)
         else if (_dest_type == FTYPE_EXU)
           {
              Exactness_Image *ex_img = malloc(sizeof(*ex_img));
-             _dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img);
-             _dest_unit->nb_shots++;
-             e_data = ex_img;
+
+             if (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)
           {

-- 


Reply via email to