Fix playhead smoothing when auditioning.
[ardour.git] / gtk2_ardour / sys_ex.cc
index b6251938a797c5fa1b59346fa36eaf17134a013d..9b2f8c1d087a21bb8e6438093aab0883ffe429ed 100644 (file)
 using namespace std;
 
 SysEx::SysEx (
-       MidiRegionView& region,
-       ArdourCanvas::Container* parent,
-       string&         text,
-       double          height,
-       double          x,
-       double          y)
+       MidiRegionView&             region,
+       ArdourCanvas::Container*    parent,
+       string&                     text,
+       double                      height,
+       double                      x,
+       double                      y,
+       ARDOUR::MidiModel::SysExPtr sysex)
+       : _sysex (sysex)
 {
        _flag = new ArdourCanvas::Flag (
                parent,
@@ -45,6 +47,10 @@ SysEx::SysEx (
 
 SysEx::~SysEx()
 {
+       /* do not delete flag because it was added to a parent/container which
+          will delete it.
+       */
+       _flag = 0;
 }
 
 bool