From 860c7679dc859f810c1696d10a5c92053e19dd7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 8 Aug 2012 19:48:35 +0200 Subject: [PATCH] check desktopNameFrame pointer in cube effect REVIEW: 105840 BUG: 304340 FIXED-IN: 4.9.1 --- effects/cube/cube.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 43bdb8d47a..133401a4c0 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -1169,7 +1169,8 @@ void CubeEffect::postPaintScreen() delete m_cubeCapBuffer; m_cubeCapBuffer = NULL; - desktopNameFrame->free(); + if (desktopNameFrame) + desktopNameFrame->free(); } effects->addRepaintFull(); }