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

View File

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