mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 13:32:01 +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`
|
`glfwGetClipboardString`
|
||||||
- [Wayland] Bugfix: Data source creation error would cause double free at termination
|
- [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: Partial writes of clipboard string would cause beginning to repeat
|
||||||
|
- [Wayland] Bugfix: Some errors would cause clipboard string transfer to hang
|
||||||
|
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
@ -1733,6 +1733,7 @@ static void dataSourceHandleSend(void* userData,
|
|||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||||
"Wayland: Unknown clipboard data source");
|
"Wayland: Unknown clipboard data source");
|
||||||
|
close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1740,6 +1741,7 @@ static void dataSourceHandleSend(void* userData,
|
|||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||||
"Wayland: Copy requested from an invalid string");
|
"Wayland: Copy requested from an invalid string");
|
||||||
|
close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user