Files
UnrealEngineUWP/Engine/Source/Programs/AutoRTFMTests/Private/Open.cpp
ben clayton b32961058c [AutoRTFM] Add framework for safe open -> closed assignment, use it to fix memory leak with FText
Replace AutoRTFM::TIsSafeToReturnFromOpen with AutoRTFM::TAssignFromOpenToClosed.
This provides the same "is-it-safe-to-return-T" functionality, but also supports custom logic for safely copy-assigning or move-assigning a value from the open to the closed.

This is used to fix a memory leak with FText.

#rb neil.henning

[CL 35965187 by ben clayton in ue5-main branch]
2024-09-03 09:09:36 -04:00

7.3 KiB