mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
fix a bunch of memory leaks
Conflicts: gtk2_ardour/ardour_button.cc
This commit is contained in:
parent
13bb67a3bb
commit
0aeb3c337c
8 changed files with 9 additions and 1072 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -334,7 +334,7 @@ ARDOUR_UI::setup_transport ()
|
|||
primary_clock->set_visible_window (false);
|
||||
editor->get_box ("primary_clock_home").pack_start (*primary_clock, false, false);
|
||||
|
||||
shuttle_box = new ShuttleControl;
|
||||
shuttle_box = manage (new ShuttleControl);
|
||||
shuttle_box->show ();
|
||||
|
||||
VBox* transport_vbox = manage (new VBox);
|
||||
|
|
|
|||
|
|
@ -877,6 +877,7 @@ ARDOUR_UI::save_ardour_state ()
|
|||
Config->add_instant_xml (location_ui->ui().get_state ());
|
||||
}
|
||||
}
|
||||
delete &enode;
|
||||
|
||||
Keyboard::save_keybindings ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,12 +260,14 @@ AudioClock::set_colors ()
|
|||
r = lrint ((r/255.0) * 65535.0);
|
||||
g = lrint ((g/255.0) * 65535.0);
|
||||
b = lrint ((b/255.0) * 65535.0);
|
||||
delete foreground_attr;
|
||||
foreground_attr = new Pango::AttrColor (Pango::Attribute::create_attr_foreground (r, g, b));
|
||||
|
||||
UINT_TO_RGBA (editing_color, &r, &g, &b, &a);
|
||||
r = lrint ((r/255.0) * 65535.0);
|
||||
g = lrint ((g/255.0) * 65535.0);
|
||||
b = lrint ((b/255.0) * 65535.0);
|
||||
delete editing_attr;
|
||||
editing_attr = new Pango::AttrColor (Pango::Attribute::create_attr_foreground (r, g, b));
|
||||
|
||||
normal_attributes.change (*foreground_attr);
|
||||
|
|
|
|||
|
|
@ -81,10 +81,8 @@ AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanv
|
|||
, _maximum_time (max_framepos)
|
||||
{
|
||||
if (converter) {
|
||||
_time_converter = converter;
|
||||
_our_time_converter = false;
|
||||
} else {
|
||||
_time_converter = new Evoral::IdentityConverter<double, framepos_t>;
|
||||
_our_time_converter = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -796,6 +796,7 @@ Editor::~Editor()
|
|||
delete _route_groups;
|
||||
delete _track_canvas_viewport;
|
||||
delete _drags;
|
||||
delete nudge_clock;
|
||||
}
|
||||
|
||||
XMLNode*
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@ LevelMeterBase::on_theme_changed()
|
|||
|
||||
LevelMeterBase::~LevelMeterBase ()
|
||||
{
|
||||
_configuration_connection.disconnect();
|
||||
_meter_type_connection.disconnect();
|
||||
_parameter_connection.disconnect();
|
||||
for (vector<MeterInfo>::iterator i = meters.begin(); i != meters.end(); i++) {
|
||||
delete (*i).meter;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -544,6 +544,7 @@ Session::destroy ()
|
|||
/* clear state tree so that no references to objects are held any more */
|
||||
|
||||
delete state_tree;
|
||||
state_tree = 0;
|
||||
|
||||
/* reset dynamic state version back to default */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue