[PATCH] Fix for uninitialized member in QWaylandCursor

Kristian Høgsberg krh at bitplanet.net
Mon Nov 29 13:11:50 PST 2010


On Thu, Nov 25, 2010 at 6:13 AM, Rolf Offermanns <roffermanns at sysgo.com> wrote:
> Without this patch Qt applications will crash the moment the mouse pointer
> enters the window.

Thanks, applied.

> 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
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list