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

Commit 96094ae2 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

ANW: fix my fix for a file descriptor leak

Change-Id: Ief7b973fbdb76920abed19707963a0c3d306af31
parent 45b0385a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }