[Scummvm-git-logs] scummvm branch-2-9 -> 156cad9d4200d26d31323d6903b9f192ef137c84

AndywinXp noreply at scummvm.org
Mon Jan 27 09:07:42 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:
156cad9d42 SWORD1: Fix file not being closed


Commit: 156cad9d4200d26d31323d6903b9f192ef137c84
    https://github.com/scummvm/scummvm/commit/156cad9d4200d26d31323d6903b9f192ef137c84
Author: AndywinXp (andywinxp at gmail.com)
Date: 2025-01-27T10:07:31+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