Fixed dangling pointer access. Fixes #277.
This commit is contained in:
@@ -103,11 +103,11 @@ void lcApplication::SetProject(Project* Project)
|
||||
{
|
||||
SaveTabLayout();
|
||||
|
||||
gMainWindow->RemoveAllModelTabs();
|
||||
|
||||
delete mProject;
|
||||
mProject = Project;
|
||||
|
||||
gMainWindow->RemoveAllModelTabs();
|
||||
|
||||
Project->SetActiveModel(0);
|
||||
lcGetPiecesLibrary()->RemoveTemporaryPieces();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user