aboutsummaryrefslogtreecommitdiff
path: root/tools/skycpt
diff options
context:
space:
mode:
authorMax Horn2009-10-02 14:44:52 +0000
committerMax Horn2009-10-02 14:44:52 +0000
commit0041502ee7751ef843392cc527fa091e852fc76d (patch)
tree9682fbf735e9710967f5687030fbd061824b918e /tools/skycpt
parentf54e82e4880767f6e71c83840bff1ae8e0feda3d (diff)
downloadscummvm-rg350-0041502ee7751ef843392cc527fa091e852fc76d.tar.gz
scummvm-rg350-0041502ee7751ef843392cc527fa091e852fc76d.tar.bz2
scummvm-rg350-0041502ee7751ef843392cc527fa091e852fc76d.zip
Release resources properly; fix code formatting
svn-id: r44540
Diffstat (limited to 'tools/skycpt')
-rw-r--r--tools/skycpt/cptcompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/skycpt/cptcompiler.cpp b/tools/skycpt/cptcompiler.cpp
index cac009a662..ec9f185a85 100644
--- a/tools/skycpt/cptcompiler.cpp
+++ b/tools/skycpt/cptcompiler.cpp
@@ -524,6 +524,7 @@ void doCompile(FILE *inf, FILE *debOutf, FILE *resOutf, TextFile *cptDef, FILE *
fwrite(diff, 2, 2 * diffPos, debOutf);
printf("diff v0.0%03d: 2 * 2 * %d\n", gameVers[cnt], diffPos);
}
+ free(buf288);
} else {
printf("Creating CPT file with Dummy reset data @ %ld\n", ftell(debOutf));
uint16 resetFields16 = 4;