Files
UnrealEngineUWP/Engine/Source/Developer/OutputLog/Private/SDeviceOutputLog.cpp
Wojciech Krywult 036b741e80 Editor: DeviceOutputLog: Ensured the right destrubtion order between ITargetDeviceOutput and its owning SDeviceOutputLog.
Previously, ITargetDeviceOutput was automatically destroyed as part of destruction of SDeviceOutputLog. It means that if ITargetDeviceOutput tried to deference the owner during its own destruction it could potentially dereference members that have already been destroyed.

Resolved by manually clearing CurrentDeviceOutputPtr which triggers destruction of ITargetDeviceOutput a bit sooner when all the owners members are still valid.

#preflight 6329d973a236a029ded37af3
#rb David.Harvey
#rnx

[CL 22115300 by Wojciech Krywult in ue5-main branch]
2022-09-21 12:26:23 -04:00

12 KiB