aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-16 03:35:44 +0000
committerTorbjörn Andersson2010-07-16 03:35:44 +0000
commit9fafc859199f16a693ba40d18cd5e93f49d4b2fa (patch)
treef0d277396490afd733ab0593c17d644e8d1b41dd /engines/agos
parentbde1cbd785d14ed8a45a6863aa75ff380a30541e (diff)
downloadscummvm-rg350-9fafc859199f16a693ba40d18cd5e93f49d4b2fa.tar.gz
scummvm-rg350-9fafc859199f16a693ba40d18cd5e93f49d4b2fa.tar.bz2
scummvm-rg350-9fafc859199f16a693ba40d18cd5e93f49d4b2fa.zip
Cleanup.
svn-id: r50929
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/midi.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/engines/agos/midi.cpp b/engines/agos/midi.cpp
index ed3e3d801b..ab5bfc4c94 100644
--- a/engines/agos/midi.cpp
+++ b/engines/agos/midi.cpp
@@ -346,15 +346,11 @@ void MidiPlayer::clearConstructs(MusicInfo &info) {
info.num_songs = 0;
}
- if (info.data) {
- free(info.data);
- info.data = 0;
- } // end if
-
- if (info.parser) {
- delete info.parser;
- info.parser = 0;
- }
+ free(info.data);
+ info.data = 0;
+
+ delete info.parser;
+ info.parser = 0;
if (_driver) {
for (i = 0; i < 16; ++i) {