mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Wayland: Fix error paths not closing sending fd
Whatever error happens on our end, we should still close the fd so the
other end can move on.
(cherry picked from commit 990dc4b388)
This commit is contained in:
@@ -1733,6 +1733,7 @@ static void dataSourceHandleSend(void* userData,
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unknown clipboard data source");
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1740,6 +1741,7 @@ static void dataSourceHandleSend(void* userData,
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Copy requested from an invalid string");
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user