Fix memory leak.

This commit is contained in:
Roman Telezhynskyi 2021-09-03 11:31:23 +03:00
parent 8e9547da4a
commit 3b388d9e19

View File

@ -779,6 +779,7 @@ void MainWindowsNoGUI::ExportDetailsAsApparelLayout(QVector<VLayoutPiece> listDe
{
const qreal x = item->boundingRect().x();
piece.Mirror();
delete item;
item = piece.GetItem(m_dialogSaveLayout->IsTextAsPaths());
diff = item->boundingRect().x() - x;
}