Fix for TextInputSystem shared ptr crash if the text input system failed to initialize

[CL 2074097 by Robert Manuszewski in Main branch]
This commit is contained in:
Robert Manuszewski
2014-05-15 08:55:25 -04:00
committed by UnrealBot
parent 8e3aa5bd36
commit cf8b3d4979

View File

@@ -103,7 +103,10 @@ bool FWindowsApplication::RegisterClass( const HINSTANCE HInstance, const HICON
FWindowsApplication::~FWindowsApplication()
{
TextInputMethodSystem->Terminate();
if (TextInputMethodSystem.IsValid())
{
TextInputMethodSystem->Terminate();
}
::CoUninitialize();
OleUninitialize();