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:
laurentgom 2009-11-22 10:08:11 +00:00
parent 2d886a366d
commit b735c7f3d1

View File

@ -245,6 +245,10 @@ WindowImplX11::~WindowImplX11()
// Cleanup graphical resources // Cleanup graphical resources
CleanUp(); CleanUp();
// Destroy the cursor
if (myHiddenCursor)
XFreeCursor(myDisplay, myHiddenCursor);
// Destroy the input context // Destroy the input context
if (myInputContext) if (myInputContext)
XDestroyIC(myInputContext); XDestroyIC(myInputContext);