From 5f439cea99eca931e33840b4b79625c550eb6c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 18 Aug 2014 20:07:15 +0200 Subject: [PATCH] [scene_qpainter] Add safety check in screenGeometryChanged The buffer might be null, so better check for it. --- scene_qpainter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene_qpainter.cpp b/scene_qpainter.cpp index 551ab58dc0..0096ca8811 100644 --- a/scene_qpainter.cpp +++ b/scene_qpainter.cpp @@ -152,6 +152,9 @@ void WaylandQPainterBackend::lastFrameRendered() void WaylandQPainterBackend::screenGeometryChanged(const QSize &size) { Q_UNUSED(size) + if (!m_buffer) { + return; + } m_buffer->setUsed(false); m_buffer = NULL; }