raster pushed a commit to branch v-0.25.0.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=61b73a4ed62ac206e9cb05d88904044299242161

commit 61b73a4ed62ac206e9cb05d88904044299242161
Author: Carsten Haitzler <[email protected]>
Date:   Sat Jan 22 18:45:38 2022 +0000

    shot - reset cnp flag once cnp'd
    
    otherwise we segv assuming we are doing cnp still and access a null
    cnp_file.
    
    @fix
---
 src/modules/shot/e_mod_share.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/shot/e_mod_share.c b/src/modules/shot/e_mod_share.c
index 6154ce85b..caa6be6a0 100644
--- a/src/modules/shot/e_mod_share.c
+++ b/src/modules/shot/e_mod_share.c
@@ -89,10 +89,11 @@ _img_write_end_cb(void *data EINA_UNUSED, int ev_type 
EINA_UNUSED, void *event)
 
    if (ev->exe != img_write_exe) return EINA_TRUE;
    _share_done();
-   if (cnp)
+   if ((cnp) && (cnp_file))
      {
         _cnp_file(cnp_file);
         eina_stringshare_replace(&cnp_file, NULL);
+        cnp = EINA_FALSE;
      }
    return EINA_FALSE;
 }

-- 


Reply via email to