diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 09c5e4a991..c4407b7c0d 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -209,9 +209,7 @@ QPainterPrivate::~QPainterPrivate() { delete emulationEngine; qDeleteAll(states); - - if (dummyState) - delete dummyState; + delete dummyState; }