mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Leave some notes about memory-leaks
This commit is contained in:
parent
8f8d0a70d8
commit
3dbdc4d837
2 changed files with 3 additions and 3 deletions
|
|
@ -1827,7 +1827,7 @@ MidiRegionView::add_note(const boost::shared_ptr<NoteType> note, bool visible)
|
||||||
|
|
||||||
if (midi_view()->note_mode() == Sustained) {
|
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);
|
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.);
|
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);
|
update_hit (ev_diamond);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ UIConfiguration::reset_dpi ()
|
||||||
/* FT2 rendering - used by GnomeCanvas, sigh */
|
/* FT2 rendering - used by GnomeCanvas, sigh */
|
||||||
|
|
||||||
#ifndef PLATFORM_WINDOWS
|
#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
|
#endif
|
||||||
|
|
||||||
/* Cairo rendering, in case there is any */
|
/* Cairo rendering, in case there is any */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue