diff --git a/plugins/scenes/qpainter/scene_qpainter.cpp b/plugins/scenes/qpainter/scene_qpainter.cpp index 8588ed96d8..98c39f45b5 100644 --- a/plugins/scenes/qpainter/scene_qpainter.cpp +++ b/plugins/scenes/qpainter/scene_qpainter.cpp @@ -223,7 +223,6 @@ SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c) SceneQPainter::Window::~Window() { - discardShape(); } static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap) diff --git a/plugins/scenes/xrender/scene_xrender.cpp b/plugins/scenes/xrender/scene_xrender.cpp index 55ae3f7752..506b8ec675 100644 --- a/plugins/scenes/xrender/scene_xrender.cpp +++ b/plugins/scenes/xrender/scene_xrender.cpp @@ -327,7 +327,6 @@ SceneXrender::Window::Window(Toplevel* c, SceneXrender *scene) SceneXrender::Window::~Window() { - discardShape(); } void SceneXrender::Window::cleanup()