ncneofetch: sem_post() on error path

This commit is contained in:
nick black 2020-07-01 03:53:01 -04:00 committed by Nick Black
parent a8db078689
commit cda4253a0a

View File

@ -369,6 +369,7 @@ display_thread(void* vmarshal){
if(m->dinfo->logofile){ if(m->dinfo->logofile){
if(ncdirect_render_image(m->nc, m->dinfo->logofile, NCBLIT_2x2, if(ncdirect_render_image(m->nc, m->dinfo->logofile, NCBLIT_2x2,
NCSCALE_SCALE) != NCERR_SUCCESS){ NCSCALE_SCALE) != NCERR_SUCCESS){
sem_post(&m->sem);
return NULL; return NULL;
} }
} }