From cfbc1cc8e5a5bebdd07a35955df62d6470213440 Mon Sep 17 00:00:00 2001 From: Jesse Chappell Date: Wed, 1 Feb 2006 00:19:44 +0000 Subject: [PATCH] fixed memory leak in xmltree git-svn-id: svn://localhost/trunk/ardour2@307 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd3/pbd/xml++.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd3/pbd/xml++.h b/libs/pbd3/pbd/xml++.h index 2e89a701de..afb896e1d5 100644 --- a/libs/pbd3/pbd/xml++.h +++ b/libs/pbd3/pbd/xml++.h @@ -47,7 +47,7 @@ public: bool initialized() const { return _initialized; }; XMLNode *root() const { return _root; }; - XMLNode *set_root(XMLNode *n) { return _root = n; }; + XMLNode *set_root(XMLNode *n) { _initialized = true; return _root = n; }; const string & filename() const { return _filename; }; const string & set_filename(const string &fn) { return _filename = fn; };