Fix fd leak in VAAPI KMSDRM codepath

This commit is contained in:
Cameron Gutman committed 2026-10-24 19:39:58 -05:00
1 parent 2b690d14ad
commit bfc6751f0f
1 file changed
+3
@@ -161,6 +161,9 @@ VAAPIRenderer::openDisplay(SDL_Window* window)
errno);
return nullptr;
}
// This FD is owned by us (not shared with SDL), so it must be
// closed when we're done with it or adopted into m_DrmFd.
mustCloseFd = true;
}
// If the KMSDRM FD is not a render node FD, open the render node for libva to use.