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 | |
parent | 8f8d0a70d8a271d754f2a7f5f2cc9a4b38b6a3b0 (diff) |
Leave some notes about memory-leaks
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/ui_config.cc | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 3b45eb7a70..7758c6a052 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -164,7 +164,7 @@ UIConfiguration::reset_dpi () /* FT2 rendering - used by GnomeCanvas, sigh */ #ifndef PLATFORM_WINDOWS - pango_ft2_font_map_set_resolution ((PangoFT2FontMap*) pango_ft2_font_map_new(), val/1024, val/1024); + pango_ft2_font_map_set_resolution ((PangoFT2FontMap*) pango_ft2_font_map_new(), val/1024, val/1024); // XXX pango_ft2_font_map_new leaks #endif /* Cairo rendering, in case there is any */ |