mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 21:27:22 +01:00
Since add_property creates new XMLProperty objects, remove_property should probably delete them. Although remove_property is only used in one place in Ardour that I can see.
git-svn-id: svn://localhost/ardour2/branches/3.0@5824 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2898c4fa70
commit
271f298635
1 changed files with 3 additions and 1 deletions
|
|
@ -413,7 +413,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue