[Scummvm-git-logs] scummvm-tools master -> be35045aa24b98cc19b5abd1473de99d0445427c
sev-
sev at scummvm.org
Wed Apr 4 23:43:24 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .
Summary:
be35045aa2 TOOLS: Fix memory leak
Commit: be35045aa24b98cc19b5abd1473de99d0445427c
https://github.com/scummvm/scummvm-tools/commit/be35045aa24b98cc19b5abd1473de99d0445427c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-04-04T23:43:11+02:00
Commit Message:
TOOLS: Fix memory leak
Changed paths:
engines/prince/extract_prince.cpp
diff --git a/engines/prince/extract_prince.cpp b/engines/prince/extract_prince.cpp
index 827e1f1..57ca886 100644
--- a/engines/prince/extract_prince.cpp
+++ b/engines/prince/extract_prince.cpp
@@ -45,7 +45,7 @@ void ExtractPrince::execute() {
_outputPath.setFullPath("./");
}
- char *pathBuffer = (char *)malloc(100 * sizeof(char));
+ char pathBuffer[100];
print("Unpacking The Prince and the Coward text data... ");
std::string databankFullName = mainDir.getFullPath();
More information about the Scummvm-git-logs
mailing list