diff --git a/src/video/wayland/SDL_waylandmessagebox.c b/src/video/wayland/SDL_waylandmessagebox.c index 03ff969c4..2a8540d06 100644 --- a/src/video/wayland/SDL_waylandmessagebox.c +++ b/src/video/wayland/SDL_waylandmessagebox.c @@ -212,6 +212,7 @@ int Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *button FILE *outputfp = NULL; char *output = NULL; char *tmp = NULL; + close(fd_pipe[1]); if (!buttonID) { /* if we don't need buttonID, we can return immediately */