mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01: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.
This commit is contained in:
@@ -1599,6 +1599,7 @@ static void dataSourceHandleSend(void* userData,
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unknown clipboard data source");
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1606,6 +1607,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