aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-10-17 17:59:09 +0000
committerWillem Jan Palenstijn2009-10-17 17:59:09 +0000
commita74fd218478656a376773f97f79f9c233f7cb4c3 (patch)
tree38d43105d1b534d942c30305c614d7280095945f /engines/sci/engine/savegame.cpp
parent42dffcdcb97744c1c60a23a1494b8e9bc5f58f10 (diff)
downloadscummvm-rg350-a74fd218478656a376773f97f79f9c233f7cb4c3.tar.gz
scummvm-rg350-a74fd218478656a376773f97f79f9c233f7cb4c3.tar.bz2
scummvm-rg350-a74fd218478656a376773f97f79f9c233f7cb4c3.zip
SCI: Fix delete/free mismatches
svn-id: r45196
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 9d663fc1cf..177659583f 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -483,7 +483,7 @@ static void sync_songlib_t(Common::Serializer &s, SongLibrary &obj) {
if (s.isLoading()) {
obj._lib = 0;
while (songcount--) {
- Song *newsong = (Song *)calloc(1, sizeof(Song));
+ Song *newsong = new Song;
sync_song_t(s, *newsong);
obj.addSong(newsong);
}