From 253e55660100a3d178227d00416844ba3007770b Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 6 Oct 2018 07:16:32 +0100 Subject: IOS: Fix Closing Standard Output & Error Log File. This is as per bug Trac #10656. --- backends/platform/ios7/ios7_osys_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/platform/ios7/ios7_osys_main.cpp') 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); + } } -- cgit v1.2.3