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