Plug some mixer memory leaks
authorRobin Gareus <robin@gareus.org>
Fri, 20 Jan 2017 10:54:02 +0000 (11:54 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 20 Jan 2017 12:53:45 +0000 (13:53 +0100)
gtk2_ardour/panner2d.cc
gtk2_ardour/processor_box.cc
gtk2_ardour/route_ui.cc

index 9697cb3a6091d83e46824e82a3f17d61cbdf043f..57d54d5f47e52cb91b5a24ceab61bdce2aa8c24d 100644 (file)
@@ -108,6 +108,9 @@ Panner2d::~Panner2d()
        for (Targets::iterator i = speakers.begin(); i != speakers.end(); ++i) {
                delete *i;
        }
+       for (Targets::iterator i = signals.begin(); i != signals.end(); ++i) {
+               delete *i;
+       }
 }
 
 void
index 9cc68c2a7de2b5c320098f8c5e9eb2b3a25f16ea..b5fe9abbe26600e5427ecd717f56839ac3bdf631 100644 (file)
@@ -4234,6 +4234,7 @@ ProcessorWindowProxy::processor_going_away ()
           send DropReferences is about to be deleted, but lets do it anyway.
        */
        going_away_connection.disconnect();
+       delete this;
 }
 
 ARDOUR::SessionHandlePtr*
@@ -4369,6 +4370,7 @@ PluginPinWindowProxy::processor_going_away ()
        _window = 0;
        WM::Manager::instance().remove (this);
        going_away_connection.disconnect();
+       delete this;
 }
 
 void
index 4896c11ceb567159d1e6ecb4d89ef6b33e86866e..9c4ddeade8f1040c9a6291def50c1a224da345da 100644 (file)
@@ -2289,6 +2289,7 @@ RoutePinWindowProxy::route_going_away ()
        _window = 0;
        WM::Manager::instance().remove (this);
        going_away_connection.disconnect();
+       delete this;
 }
 
 void