diff --git a/src/SFML/Window/Linux/WindowImplX11.cpp b/src/SFML/Window/Linux/WindowImplX11.cpp index 8a8a70a2..2be374a7 100644 --- a/src/SFML/Window/Linux/WindowImplX11.cpp +++ b/src/SFML/Window/Linux/WindowImplX11.cpp @@ -245,6 +245,10 @@ WindowImplX11::~WindowImplX11() // Cleanup graphical resources CleanUp(); + // Destroy the cursor + if (myHiddenCursor) + XFreeCursor(myDisplay, myHiddenCursor); + // Destroy the input context if (myInputContext) XDestroyIC(myInputContext);