mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-16 00:13:00 +00:00
[get_cursor_location] unlock on error path, erp #2558
This commit is contained in:
parent
285aa9d92a
commit
792dbf9a59
@ -2662,6 +2662,7 @@ int get_cursor_location(inputctx* ictx, const char* u7, unsigned* y, unsigned* x
|
||||
while(ictx->cvalid == 0){
|
||||
if(ictx->coutstanding == 0){
|
||||
if(tty_emit(u7, ictx->ti->ttyfd)){
|
||||
pthread_mutex_unlock(&ictx->clock);
|
||||
return -1;
|
||||
}
|
||||
++ictx->coutstanding;
|
||||
|
Loading…
Reference in New Issue
Block a user