Skip to content
Snippets Groups Projects
Commit cd5dea10 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix circular reference in event copy constructor

parent 19706f46
Branches
Tags
No related merge requests found
......@@ -219,7 +219,10 @@ String SystemEvent::getSyncText(const MidiMessage& msg)
//Event
Event::Event(const Event& other)
: Event(other)
: EventBase(other),
m_channel(other.m_channel),
m_channelInfo(other.m_channelInfo),
m_eventType(other.m_eventType)
{
size_t size = other.m_channelInfo->getDataSize();
m_data.malloc(size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment