am 96094ae2: ANW: fix my fix for a file descriptor leak
* commit '96094ae27c4deac8b0dde8e3c6a479b249cecb72': ANW: fix my fix for a file descriptor leak
This commit is contained in:
commit
160f0c9edb
|
@ -830,7 +830,7 @@ static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw,
|
|||
err = sync_wait(fenceFd, UINT_MAX);
|
||||
close(fenceFd);
|
||||
if (err != 0) {
|
||||
anw->cancelBuffer(anw, *anb, fenceFd);
|
||||
anw->cancelBuffer(anw, *anb, -1);
|
||||
*anb = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue