xcb: Fix build with QT_NO_CURSOR

Change-Id: I2391c2921274b7a178fbdde1d0f59f7fbaa3048e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
bb10
Andrew Knight 2015-07-15 23:01:31 +03:00
parent 5cc734e0a3
commit 2bcb2ce8c9
1 changed files with 2 additions and 0 deletions

View File

@ -336,8 +336,10 @@ QXcbCursor::~QXcbCursor()
if (!--cursorCount)
xcb_close_font(conn, cursorFont);
#ifndef QT_NO_CURSOR
foreach (xcb_cursor_t cursor, m_cursorHash)
xcb_free_cursor(conn, cursor);
#endif
}
#ifndef QT_NO_CURSOR