13
0

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:
Carl Hetherington 2012-05-21 10:26:10 +00:00
parent 0e5dfc2dea
commit 23a615a6db

View File

@ -110,6 +110,11 @@ public:
ScopedConnection& operator= (UnscopedConnection const & o)
{
if (_c == o) {
return *this;
}
disconnect ();
_c = o;
return *this;
}