Commit ebc16c6e authored by cutealien's avatar cutealien

Release inviscursor in IrrDeviceLinux. Thanks @hendu for reporting.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4306 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5f509b21
...@@ -2160,6 +2160,7 @@ CIrrDeviceLinux::CCursorControl::~CCursorControl() ...@@ -2160,6 +2160,7 @@ CIrrDeviceLinux::CCursorControl::~CCursorControl()
#ifdef _IRR_COMPILE_WITH_X11_ #ifdef _IRR_COMPILE_WITH_X11_
void CIrrDeviceLinux::CCursorControl::clearCursors() void CIrrDeviceLinux::CCursorControl::clearCursors()
{ {
XFreeCursor(Device->display, invisCursor);
for ( u32 i=0; i < Cursors.size(); ++i ) for ( u32 i=0; i < Cursors.size(); ++i )
{ {
for ( u32 f=0; f < Cursors[i].Frames.size(); ++f ) for ( u32 f=0; f < Cursors[i].Frames.size(); ++f )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment