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 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user