diff --git a/tiling.cpp b/tiling.cpp index b773c1a1cd..0b5d4f81f9 100644 --- a/tiling.cpp +++ b/tiling.cpp @@ -55,11 +55,7 @@ void Workspace::setTilingMode( bool tiling ) } else { - foreach( TilingLayout *t, tilingLayouts ) - { - if( t ) - delete t; - } + qDeleteAll( tilingLayouts ); tilingLayouts.clear(); } }