[PATCH] Fix for uninitialized member in QWaylandCursor

Rolf Offermanns roffermanns at sysgo.com
Thu Nov 25 03:13:30 PST 2010


Without this patch Qt applications will crash the moment the mouse pointer
enters the window.


Signed-off-by: Rolf Offermanns <roffermanns at sysgo.com>
---
 .../platforms/wayland/qwaylandintegration.cpp      |    2 +-
 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;
-- 
1.7.3.2



More information about the wayland-devel mailing list