X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcanvas-midi-event.cc;h=298743509085c871066360a00f4491253d2c7552;hb=14dcc3f0170f8c723bcef0a59562adce0e8e7596;hp=5981e7b78e3e7993b7f5bcac211857b57eb3e5fe;hpb=15af67c179ce336867c8f783388384f3ce214a99;p=ardour.git diff --git a/gtk2_ardour/canvas-midi-event.cc b/gtk2_ardour/canvas-midi-event.cc index 5981e7b78e..2987435090 100644 --- a/gtk2_ardour/canvas-midi-event.cc +++ b/gtk2_ardour/canvas-midi-event.cc @@ -31,24 +31,17 @@ namespace Gnome { namespace Canvas { -CanvasMidiEvent::CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::Note* note, bool copy_note) +CanvasMidiEvent::CanvasMidiEvent(MidiRegionView& region, Item* item, + const boost::shared_ptr note) : _region(region) , _item(item) , _state(None) - , _note((copy_note && note) ? new ARDOUR::Note(*note) : note) - , _own_note(copy_note) + , _note(note) , _selected(false) { } -CanvasMidiEvent::~CanvasMidiEvent() -{ - if (_own_note) - delete _note; -} - - void CanvasMidiEvent::selected(bool yn) {