aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/pool
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-03-14 17:14:53 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-03-14 17:14:53 +0000
commit0a1bfe4e819333ffd8fd62a1e65f8a736f774d51 (patch)
treee8ba33606b1849c064f1e424f42a72bb30f9acc6 /externals/grill/pool
parent974ba3a08a427443369461cbb1196fa7d5b67c04 (diff)
fixed double-free on clearing values and dirs
reintroduced missing help message minor cleanups fixed bug in XML saving of nested folders svn path=/trunk/; revision=4707
Diffstat (limited to 'externals/grill/pool')
-rw-r--r--externals/grill/pool/readme.txt1
-rw-r--r--externals/grill/pool/source/pool.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/externals/grill/pool/readme.txt b/externals/grill/pool/readme.txt
index 25cae32e..0ab9186b 100644
--- a/externals/grill/pool/readme.txt
+++ b/externals/grill/pool/readme.txt
@@ -79,6 +79,7 @@ Version history:
- fixed serious bug with clearing values and dirs. e.g. "clrall" and "clrrec" messages.
- fixed double-free for clearing dirs and values
- re-introduced a help message
+- fixed bug in nested-dir XML saving
0.2.1:
- fixed "cntsub"... directories in current directory have been forgotten
diff --git a/externals/grill/pool/source/pool.cpp b/externals/grill/pool/source/pool.cpp
index 1de7994e..6b75b4c6 100644
--- a/externals/grill/pool/source/pool.cpp
+++ b/externals/grill/pool/source/pool.cpp
@@ -65,7 +65,6 @@ poolval::~poolval()
{
if(data) delete data;
-// if(nxt) delete nxt;
FLEXT_ASSERT(nxt == NULL);
}
@@ -95,7 +94,6 @@ pooldir::~pooldir()
{
Reset(false);
-// if(nxt) delete nxt;
FLEXT_ASSERT(nxt == NULL);
}
@@ -983,7 +981,7 @@ BL pooldir::SvDirXML(ostream &os,I depth,const AtomList &dir,I ind)
os << "<dir>" << endl;
indent(os,ind+i+1);
os << "<key>";
- WriteAtom(os,dir[i]);
+ WriteAtom(os,dir[ind+i]);
os << "</key>" << endl;
}