Clear reconstructed VST3 events on deserialization

This fixes a regression from 964c150158,
because now the old reconstructed events buffer will stay alive.
This commit is contained in:
Robbert van der Helm
2021-06-11 18:13:22 +02:00
parent 9c30d64975
commit fe29def33f
@@ -257,6 +257,10 @@ class YaEventList : public Steinberg::Vst::IEventList {
template <typename S>
void serialize(S& s) {
s.container(events, 1 << 16);
// NOTE: After deserializing events, we need to make sure to clear our
// caches since those may still contain old events
reconstructed_events.clear();
}
private: