Prevent potential crash in QXcbCursor::queryPointer().
authorSamuel Rødal <samuel.rodal@digia.com>
Tue, 23 Oct 2012 15:19:29 +0000 (17:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 26 Oct 2012 20:39:39 +0000 (22:39 +0200)
commitd9984697401460c64d1a49838b61a298f291b9dd
tree3ce0bb7d87cec3c2a481e713f9dd0f6e19dd4dc9
parentfe4068a12b135add4e1203fc1214d238865b49a1
Prevent potential crash in QXcbCursor::queryPointer().

xcb_get_setup might return 0, but we already have it in QXcbConnection.

Task-number: QTBUG-27686
Change-Id: I58418aedd6bc121ae2b9605389beb3f6612d7fb7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/plugins/platforms/xcb/qxcbcursor.cpp
src/plugins/platforms/xcb/qxcbcursor.h
src/plugins/platforms/xcb/qxcbintegration.cpp