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(); }