Skip to content

Commit 89c0267

Browse files
committed
UE4 Editor shutdown crash fix
- Fix for a crash during UE4 editor shutdown when python editor was opened before
1 parent e590839 commit 89c0267

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/PythonEditor/Private/PythonProjectEditor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ struct FProjectViewSummoner : public FWorkflowTabFactory
102102
ViewMenuTooltip = LOCTEXT("ProjectTabMenu_ToolTip", "Shows the project panel");
103103
}
104104

105+
~FProjectViewSummoner()
106+
{
107+
MyPythonProjectEditor.Reset();
108+
}
109+
105110
virtual TSharedRef<SWidget> CreateTabBody(const FWorkflowTabSpawnInfo& Info) const override
106111
{
107112
TSharedPtr<FPythonProjectEditor> PythonEditorPtr = StaticCastSharedPtr<FPythonProjectEditor>(HostingApp.Pin());

0 commit comments

Comments
 (0)