[Scummvm-git-logs] scummvm master -> fa6f6ce06ebf7ced2b8b7513498f22800a69c5a5

AndywinXp noreply at scummvm.org
Mon Jan 27 09:03:00 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fa6f6ce06e SWORD1: Fix file not being closed


Commit: fa6f6ce06ebf7ced2b8b7513498f22800a69c5a5
    https://github.com/scummvm/scummvm/commit/fa6f6ce06ebf7ced2b8b7513498f22800a69c5a5
Author: AndywinXp (andywinxp at gmail.com)
Date: 2025-01-27T10:02:53+01:00

Commit Message:
SWORD1: Fix file not being closed

This fixes saving savestates.

Changed paths:
    engines/sword1/control.cpp


diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index 923eb133808..71f153f0d74 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -1478,9 +1478,12 @@ bool Control::driveSpaceAvailable() {
 
 	outf->finalize();
 
-	if (outf->err())
+	if (outf->err()) {
+		delete outf;
 		return false;
+	}
 
+	delete outf;
 	return true;
 }
 




More information about the Scummvm-git-logs mailing list