diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2022-01-22 18:45:38 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2022-01-22 18:45:38 +0000 |
commit | cef95a0189c59316ca3b16732204bbf98886e25f (patch) | |
tree | fe87a08acc277996ab9ba18deaf9865e057ca2f1 | |
parent | ea973717708a71b62e4661b4dad7b2bd15bc23ef (diff) | |
download | enlightenment-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.c | 3 |
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; } |