diff --git a/src/SFML/Window/Win32/ClipboardImpl.cpp b/src/SFML/Window/Win32/ClipboardImpl.cpp index 7353af9aa..1ad613abc 100644 --- a/src/SFML/Window/Win32/ClipboardImpl.cpp +++ b/src/SFML/Window/Win32/ClipboardImpl.cpp @@ -81,6 +81,7 @@ void ClipboardImpl::setString(const String& text) if (!EmptyClipboard()) { std::cerr << "Failed to empty the Win32 clipboard." << std::endl; + CloseClipboard(); return; }