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:
Jamie Gennis 2012-09-20 20:24:05 -07:00 committed by Android Git Automerger
commit 160f0c9edb
1 changed files with 1 additions and 1 deletions

View File

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