diff options
author | D G Turner | 2018-10-06 07:16:32 +0100 |
---|---|---|
committer | D G Turner | 2018-10-06 07:16:32 +0100 |
commit | 253e55660100a3d178227d00416844ba3007770b (patch) | |
tree | cd033438500d9619494a24d0806d8d9347a95e2b | |
parent | 361fe6cd1beb0c0fb5149c45338dc623f4ad8100 (diff) | |
download | scummvm-rg350-253e55660100a3d178227d00416844ba3007770b.tar.gz scummvm-rg350-253e55660100a3d178227d00416844ba3007770b.tar.bz2 scummvm-rg350-253e55660100a3d178227d00416844ba3007770b.zip |
IOS: Fix Closing Standard Output & Error Log File.
This is as per bug Trac #10656.
-rw-r--r-- | backends/platform/ios7/ios7_osys_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/ios7/ios7_osys_main.cpp b/backends/platform/ios7/ios7_osys_main.cpp index 118ac22dae..9873c9f7b2 100644 --- a/backends/platform/ios7/ios7_osys_main.cpp +++ b/backends/platform/ios7/ios7_osys_main.cpp @@ -400,4 +400,10 @@ void iOS7_main(int argc, char **argv) { // Invoke the actual ScummVM main entry point: scummvm_main(argc, (const char *const *) argv); g_system->quit(); // TODO: Consider removing / replacing this! + + if (newfp != NULL) { + *stdout = NULL; + *stderr = NULL; + fclose(newfp); + } } |