Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61e6bc5b authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 37bd30bf: Merge "ANW: fix an fd leak" into jb-mr1-dev

* commit '37bd30bf':
  ANW: fix an fd leak
parents fdecfc87 37bd30bf
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -828,9 +828,8 @@ static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw,
    int err = anw->dequeueBuffer(anw, anb, &fenceFd);
    if (err == 0 && fenceFd != -1) {
        err = sync_wait(fenceFd, UINT_MAX);
        if (err == 0) {
        close(fenceFd);
        } else {
        if (err != 0) {
            anw->cancelBuffer(anw, *anb, fenceFd);
            *anb = NULL;
        }