From 61b73a4ed62ac206e9cb05d88904044299242161 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 22 Jan 2022 18:45:38 +0000 Subject: [PATCH] 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; }