X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmarker_time_axis.cc;h=1c6e7af2c79e81817734e0324f770d582553c383;hb=cc603c2dafae5585c0d0339675fa09bf766bcb55;hp=e8673e6fe349035ac0d14c5d595233645d3d3d58;hpb=b1a99f89da52018d3995592eb821f8e4a3c89a28;p=ardour.git diff --git a/gtk2_ardour/marker_time_axis.cc b/gtk2_ardour/marker_time_axis.cc index e8673e6fe3..1c6e7af2c7 100644 --- a/gtk2_ardour/marker_time_axis.cc +++ b/gtk2_ardour/marker_time_axis.cc @@ -42,6 +42,7 @@ #include "i18n.h" using namespace ARDOUR; +using namespace PBD; using namespace sigc; using namespace Gtk; @@ -57,7 +58,7 @@ using namespace Gtk; * @param name the name/id of this time axis * @param tav the associated track view that this MarkerTimeAxis is marking up */ -MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas, std::string name, TimeAxisView* tav) +MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& canvas, const string & name, TimeAxisView* tav) : AxisView(sess), VisualTimeAxis(name, ed, sess, canvas) { @@ -71,7 +72,6 @@ MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& selection_group->hide(); // intialize our data items - name_prompter = 0 ; marker_menu = 0 ; y_position = -1 ; @@ -92,27 +92,7 @@ MarkerTimeAxis::MarkerTimeAxis (PublicEditor& ed, ARDOUR::Session& sess, Canvas& */ MarkerTimeAxis::~MarkerTimeAxis() { - GoingAway() ; /* EMIT_SIGNAL */ - - for (list::iterator i = free_selection_rects.begin(); i != free_selection_rects.end(); ++i) - { - delete (*i)->rect; - delete (*i)->start_trim; - delete (*i)->end_trim; - } - - for (list::iterator i = used_selection_rects.begin(); i != used_selection_rects.end(); ++i) - { - delete (*i)->rect; - delete (*i)->start_trim; - delete (*i)->end_trim; - } - - if(selection_group) - { - delete selection_group; - selection_group = 0 ; - } + GoingAway() ; /* EMIT_SIGNAL */ // destroy the view helper // this handles removing and destroying individual marker items