mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed memory leak.
This commit is contained in:
parent
8dad9dd269
commit
28437d16f7
1 changed files with 1 additions and 0 deletions
|
@ -163,6 +163,7 @@ bool lcPreviewWidget::SetCurrentPiece(const QString& PartType, int ColorCode)
|
|||
|
||||
void lcPreviewWidget::ClearPreview()
|
||||
{
|
||||
delete mLoader;
|
||||
mLoader = new Project(true/*IsPreview*/);
|
||||
mLoader->SetActiveModel(0);
|
||||
mModel = mLoader->GetActiveModel();
|
||||
|
|
Loading…
Reference in a new issue