Must disconnect old UnscopedConnection when setting a new one in operator=, otherwise the old one is leaked.
git-svn-id: svn://localhost/ardour2/branches/3.0@12356 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0e5dfc2dea
commit
23a615a6db
@ -110,6 +110,11 @@ public:
|
||||
|
||||
ScopedConnection& operator= (UnscopedConnection const & o)
|
||||
{
|
||||
if (_c == o) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
disconnect ();
|
||||
_c = o;
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user