Fix memory leak.
This commit is contained in:
parent
8e9547da4a
commit
3b388d9e19
|
@ -779,6 +779,7 @@ void MainWindowsNoGUI::ExportDetailsAsApparelLayout(QVector<VLayoutPiece> listDe
|
||||||
{
|
{
|
||||||
const qreal x = item->boundingRect().x();
|
const qreal x = item->boundingRect().x();
|
||||||
piece.Mirror();
|
piece.Mirror();
|
||||||
|
delete item;
|
||||||
item = piece.GetItem(m_dialogSaveLayout->IsTextAsPaths());
|
item = piece.GetItem(m_dialogSaveLayout->IsTextAsPaths());
|
||||||
diff = item->boundingRect().x() - x;
|
diff = item->boundingRect().x() - x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user