summaryrefslogtreecommitdiff
path: root/libs/pbd/stateful.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-02-09 22:26:14 +0000
committerCarl Hetherington <carl@carlh.net>2010-02-09 22:26:14 +0000
commitdbc3faa913744e46faebcdac5300c1028c3beafa (patch)
treedcd6297489e501a9983032887bd2089b09614242 /libs/pbd/stateful.cc
parent5526aa29359a955eccc91527d8875b85eb298860 (diff)
Remove erroneous delete of States; they are owned by the subclass that adds them.
git-svn-id: svn://localhost/ardour2/branches/3.0@6666 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful.cc')
-rw-r--r--libs/pbd/stateful.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/pbd/stateful.cc b/libs/pbd/stateful.cc
index 9f510b85d4..52b80c95ae 100644
--- a/libs/pbd/stateful.cc
+++ b/libs/pbd/stateful.cc
@@ -47,10 +47,6 @@ Stateful::~Stateful ()
// means it needs to live on indefinately.
delete _instant_xml;
-
- for (list<StateBase*>::iterator i = _states.begin(); i != _states.end(); ++i) {
- delete *i;
- }
}
void