shot - reset cnp flag once cnp'd

otherwise we segv assuming we are doing cnp still and access a null
cnp_file.

@fix
This commit is contained in:
Carsten Haitzler 2022-01-22 18:45:38 +00:00
parent 200fea6e38
commit 61b73a4ed6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}