mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +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:
parent
f51ec79951
commit
75b27849f6
@ -133,6 +133,7 @@ information on what to include when reporting a bug.
|
||||
`glfwGetClipboardString`
|
||||
- [Wayland] Bugfix: Data source creation error would cause double free at termination
|
||||
- [Wayland] Bugfix: Partial writes of clipboard string would cause beginning to repeat
|
||||
- [Wayland] Bugfix: Some errors would cause clipboard string transfer to hang
|
||||
|
||||
|
||||
## Contact
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user