diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-20 13:31:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-20 13:54:12 +0100 |
commit | 3dbdc4d837b3bc5bd3b15a3d40b15610d639e7f1 (patch) | |
tree | 503d9da5c6968697e396de83f442ca775d161617 /gtk2_ardour/midi_region_view.cc | |
parent | 8f8d0a70d8a271d754f2a7f5f2cc9a4b38b6a3b0 (diff) |
Leave some notes about memory-leaks
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index a7ee621b69..5a4a5d6063 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1827,7 +1827,7 @@ MidiRegionView::add_note(const boost::shared_ptr<NoteType> note, bool visible) if (midi_view()->note_mode() == Sustained) { - Note* ev_rect = new Note (*this, _note_group, note); + Note* ev_rect = new Note (*this, _note_group, note); // XXX may leak update_sustained (ev_rect); @@ -1837,7 +1837,7 @@ MidiRegionView::add_note(const boost::shared_ptr<NoteType> note, bool visible) const double diamond_size = std::max(1., floor(note_height()) - 2.); - Hit* ev_diamond = new Hit (*this, _note_group, diamond_size, note); + Hit* ev_diamond = new Hit (*this, _note_group, diamond_size, note); // XXX may leak update_hit (ev_diamond); |