diff --git a/effects/showfps/showfps.cpp b/effects/showfps/showfps.cpp index dd12b7f0b1..2a4703bfd6 100644 --- a/effects/showfps/showfps.cpp +++ b/effects/showfps/showfps.cpp @@ -465,8 +465,7 @@ void ShowFpsEffect::paintFPSText(int fps) painter.setFont(textFont); painter.setPen(textColor); painter.drawText(QRect(0, 0, 100, 100), textAlign, QString::number(fps)); - if (fpsText) - delete fpsText; + delete fpsText; fpsText = new GLTexture(im); fpsText->bind(); if (ShaderManager::instance()->isValid()) {