[INTEGRATE] Change 2311043 by Mark.Satterthwaite@Pitbull-MARKSATT-MACPRO-03 on 2014/09/26 10:01:14

FInternationalization::Terminate was setting bIsInitialized to false after deleting the FInternationalization instance, causing a use-after-free bug. Set bIsInitialized to false first.
	#codereview michael.trepka, Saul.Abreu

[CL 2311104 by Ben Marsh in 4.5 branch]
This commit is contained in:
Ben Marsh
2014-09-26 11:35:44 -04:00
committed by UnrealBot
parent 5817f3ab59
commit 31609954ac

View File

@@ -290,9 +290,9 @@ void FInternationalization::Terminate()
#endif //IS_PROGRAM || !IS_MONOLITHIC
#endif //UE_ENABLE_ICU
bIsInitialized = false;
delete Instance;
Instance = nullptr;
bIsInitialized = false;
}
#if UE_ENABLE_ICU && (IS_PROGRAM || !IS_MONOLITHIC)