patch for unimportant memory leak, #1809

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5984 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-30 17:22:35 +00:00
parent 766dae795b
commit 68f85d05b5

View file

@ -340,7 +340,9 @@ void
XMLNode::remove_property(const string & n)
{
if (_propmap.find(n) != _propmap.end()) {
_proplist.remove(_propmap[n]);
XMLProperty* p = _propmap[n];
_proplist.remove (p);
delete p;
_propmap.erase(n);
}
}