Commit 61d23229 authored by hybrid's avatar hybrid

Fix cleanup in case of a failed visual creation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3432 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 45752ab6
......@@ -135,8 +135,11 @@ CIrrDeviceLinux::~CIrrDeviceLinux()
if (StdHints)
XFree(StdHints);
// Disable cursor (it is drop'ed in stub)
CursorControl->setVisible(false);
static_cast<CCursorControl*>(CursorControl)->clearCursors();
if (CursorControl)
{
CursorControl->setVisible(false);
static_cast<CCursorControl*>(CursorControl)->clearCursors();
}
if (display)
{
#ifdef _IRR_COMPILE_WITH_OPENGL_
......
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