Fix for uninitialized member in QWaylandCursor
authorRolf Offermanns <roffermanns@sysgo.com>
Thu, 25 Nov 2010 11:13:30 +0000 (12:13 +0100)
committerJørgen Lind <jorgen.lind@nokia.com>
Tue, 25 Jan 2011 18:06:05 +0000 (19:06 +0100)
Without this patch Qt applications will crash the moment the mouse pointer
enters the window.

Signed-off-by: Rolf Offermanns <roffermanns@sysgo.com>
src/plugins/platforms/wayland/qwaylandintegration.cpp

index 19f339a..82789c8 100644 (file)
@@ -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;