shot - reset cnp flag once cnp'd

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

@fix
v-0.25.0
Carsten Haitzler 1 year ago
parent 200fea6e38
commit 61b73a4ed6
  1. 3
      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;
}

Loading…
Cancel
Save