mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed dangling pointer access. Fixes #277.
This commit is contained in:
parent
a10d1c1727
commit
7bb791e3eb
1 changed files with 2 additions and 2 deletions
|
@ -103,11 +103,11 @@ void lcApplication::SetProject(Project* Project)
|
|||
{
|
||||
SaveTabLayout();
|
||||
|
||||
gMainWindow->RemoveAllModelTabs();
|
||||
|
||||
delete mProject;
|
||||
mProject = Project;
|
||||
|
||||
gMainWindow->RemoveAllModelTabs();
|
||||
|
||||
Project->SetActiveModel(0);
|
||||
lcGetPiecesLibrary()->RemoveTemporaryPieces();
|
||||
|
||||
|
|
Loading…
Reference in a new issue