summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Offermanns <roffermanns@sysgo.com>2010-11-25 11:13:30 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-25 18:06:05 (GMT)
commit01f21cb23b83ec36267fd606e6137bd7765133c1 (patch)
treeedc0ad7eef7ccc931a7543a343c6499d72c04aa0
parent9d8b093f05a936cdd18f50474cb47c59ed42ac14 (diff)
downloadQt-01f21cb23b83ec36267fd606e6137bd7765133c1.zip
Qt-01f21cb23b83ec36267fd606e6137bd7765133c1.tar.gz
Qt-01f21cb23b83ec36267fd606e6137bd7765133c1.tar.bz2
Fix for uninitialized member in QWaylandCursor
Without this patch Qt applications will crash the moment the mouse pointer enters the window. Signed-off-by: Rolf Offermanns <roffermanns@sysgo.com>
-rw-r--r--src/plugins/platforms/wayland/qwaylandintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandintegration.cpp b/src/plugins/platforms/wayland/qwaylandintegration.cpp
index 19f339a..82789c8 100644
--- a/src/plugins/platforms/wayland/qwaylandintegration.cpp
+++ b/src/plugins/platforms/wayland/qwaylandintegration.cpp
@@ -25,7 +25,7 @@ public:
QWaylandCursor(QWaylandDisplay *display,
QPlatformScreen *screen)
: QPlatformCursor(screen)
- , mDisplay(display) { }
+ , mBuffer(0), mDisplay(display) { }
void changeCursor(QCursor *cursor, QWidget *widget);
QWaylandShmBuffer *mBuffer;