Fix memory leak when reading MIDI files
This commit is contained in:
@@ -173,6 +173,7 @@ SMF::open(const std::string& path, int track)
|
||||
}
|
||||
_type0channels.insert(chan);
|
||||
}
|
||||
free (buf);
|
||||
_type0 = true;
|
||||
seek_to_start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user