Steps to Reproduce
- Create an SGraphEditor::FGraphEditorEvents on the stack
- Bind a callback to the deprecated “OnCreateActionMenu” delegate.
- Create a new SGraphEditor, passing in the temporary FGraphEditorEvents which goes out of scope after the caller finishes.
- Caller scope exits, FGraphEditorEvents variable is expired
- <some time passes>
- Right click in the new graph editor, it will invoke the OnCreateActionMenuAtLocation wrapper we created in SGraphEditor::UpgradeDeprecatedDelegates.
- It will crash when trying to invoke EventsToUpdate.OnCreateActionMenu as EventsToUpdate is an expired stack object which was destructed in step 3.