13
0

Fix memory leak when reading MIDI files

This commit is contained in:
Robin Gareus 2020-05-22 01:29:25 +02:00
parent ab4b268e5f
commit 44bca6cc8f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -173,6 +173,7 @@ SMF::open(const std::string& path, int track)
}
_type0channels.insert(chan);
}
free (buf);
_type0 = true;
seek_to_start();
}