mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 07:57:43 +01:00
fix eternal valgrind complaint about GainMeter::_width not being initialized; make GainMeterBase derive from sigc::trackable so that its slots are disconnected from signals when it is deleted
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3500 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f509da7043
commit
d3dbad3933
2 changed files with 2 additions and 1 deletions
|
|
@ -83,6 +83,7 @@ GainMeterBase::GainMeterBase (boost::shared_ptr<IO> io, Session& s,
|
|||
meter_menu = 0;
|
||||
next_release_selects = false;
|
||||
style_changed = true;
|
||||
_width = Wide;
|
||||
|
||||
if (horizontal) {
|
||||
gain_slider = manage (new HSliderController (pix,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace Gtk {
|
|||
class Menu;
|
||||
}
|
||||
|
||||
class GainMeterBase
|
||||
class GainMeterBase : virtual public sigc::trackable
|
||||
{
|
||||
public:
|
||||
GainMeterBase (boost::shared_ptr<ARDOUR::IO>, ARDOUR::Session&, const Glib::RefPtr<Gdk::Pixbuf>& pix,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue