Skip to content

Commit cd5dea1

Browse files
committed
Fix circular reference in event copy constructor
1 parent 19706f4 commit cd5dea1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Source/Processors/Events/Events.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ String SystemEvent::getSyncText(const MidiMessage& msg)
219219

220220
//Event
221221
Event::Event(const Event& other)
222-
: Event(other)
222+
: EventBase(other),
223+
m_channel(other.m_channel),
224+
m_channelInfo(other.m_channelInfo),
225+
m_eventType(other.m_eventType)
223226
{
224227
size_t size = other.m_channelInfo->getDataSize();
225228
m_data.malloc(size);

0 commit comments

Comments
 (0)