diff options
author | Paul Gilbert | 2017-09-18 21:06:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-18 21:06:34 -0400 |
commit | 0362b70225c1a6f89e3b4f933a2d127e3638c101 (patch) | |
tree | d6ca3fa5c89996812ea6f04b9d7086893eeeb4d9 /engines/titanic | |
parent | f6ef3cbc9e6873417af71ce9cf0b841b6e85e9d0 (diff) | |
download | scummvm-rg350-0362b70225c1a6f89e3b4f933a2d127e3638c101.tar.gz scummvm-rg350-0362b70225c1a6f89e3b4f933a2d127e3638c101.tar.bz2 scummvm-rg350-0362b70225c1a6f89e3b4f933a2d127e3638c101.zip |
TITANIC: Fix memory leak loading star control stars
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/star_control/star_points1.cpp | 1 | ||||
-rw-r--r-- | engines/titanic/star_control/star_points2.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/titanic/star_control/star_points1.cpp b/engines/titanic/star_control/star_points1.cpp index d8a0bdc405..0328743a98 100644 --- a/engines/titanic/star_control/star_points1.cpp +++ b/engines/titanic/star_control/star_points1.cpp @@ -56,6 +56,7 @@ bool CStarPoints1::initialize() { entry._z = sin(v2) * 3000000.0; } + delete stream; return true; } diff --git a/engines/titanic/star_control/star_points2.cpp b/engines/titanic/star_control/star_points2.cpp index 23cef4ce4c..aa5444f16b 100644 --- a/engines/titanic/star_control/star_points2.cpp +++ b/engines/titanic/star_control/star_points2.cpp @@ -61,6 +61,7 @@ bool CStarPoints2::initialize() { } } + delete stream; return true; } |