From dbc3faa913744e46faebcdac5300c1028c3beafa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 9 Feb 2010 22:26:14 +0000 Subject: [PATCH] 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 --- libs/pbd/stateful.cc | 4 ---- 1 file changed, 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::iterator i = _states.begin(); i != _states.end(); ++i) { - delete *i; - } } void