mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed a memory leak in sf::Window on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1282 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
2d886a366d
commit
b735c7f3d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user