TileLayout: fix the clear() method

This commit is contained in:
Olivier Teulière 2012-01-29 16:43:51 +01:00
parent 6411b1975d
commit b45d113157

View file

@ -22,6 +22,7 @@
#include "tile_layout.h"
#include "tile_widget.h"
#include "qtcommon.h"
using namespace std;
@ -45,7 +46,10 @@ void TileLayout::clear()
{
QLayoutItem *item;
while ((item = takeAt(0)))
{
QtCommon::DestroyObject(item->widget());
delete item;
}
}