EGL-imported FD handles are not cleaned up
Not sure about this, but in egl-gles.c we convert the gem_handles
to FDs and directly pass the FD to the EGL_DMA_BUF_PLANE0_FD_EXT
attribute when creating the EGLImage
. The EGL_EXT_image_dma_buf_import spec says
3. Does ownership of the file descriptor pass to the EGL library?
ANSWER: No, EGL does not take ownership of the file descriptors. It is the
responsibility of the application to close the file descriptors on success
and failure.
So I guess we are missing to close the imported FD at some point?