summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-22 18:45:38 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-22 18:45:38 +0000
commitcef95a0189c59316ca3b16732204bbf98886e25f (patch)
treefe87a08acc277996ab9ba18deaf9865e057ca2f1
parentea973717708a71b62e4661b4dad7b2bd15bc23ef (diff)
downloadenlightenment-cef95a0189c59316ca3b16732204bbf98886e25f.tar.gz
shot - reset cnp flag once cnp'd
otherwise we segv assuming we are doing cnp still and access a null cnp_file. @fix
-rw-r--r--src/modules/shot/e_mod_share.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/shot/e_mod_share.c b/src/modules/shot/e_mod_share.c
index 6154ce85bd..caa6be6a0e 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;
}