fixed memory leak in xmltree
authorJesse Chappell <jesse@essej.net>
Wed, 1 Feb 2006 00:19:44 +0000 (00:19 +0000)
committerJesse Chappell <jesse@essej.net>
Wed, 1 Feb 2006 00:19:44 +0000 (00:19 +0000)
git-svn-id: svn://localhost/trunk/ardour2@307 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd3/pbd/xml++.h

index 2e89a701de7de42594a842ab234708db1e1708b5..afb896e1d537c57fdec265c21c703fa2c8e5684f 100644 (file)
@@ -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; };