mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
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:
@@ -257,6 +257,10 @@ class YaEventList : public Steinberg::Vst::IEventList {
|
|||||||
template <typename S>
|
template <typename S>
|
||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.container(events, 1 << 16);
|
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:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user