diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-02 14:35:08 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-02 14:35:08 -0700 |
commit | e228c6d5d499f8a59d215a0c3e6122b8800214fc (patch) | |
tree | ca7a4f2262f4df82101fba1f5a4ee985c3fb61de /src | |
parent | fdc24c062eb4a73aa81b941b67d277691d6dd5a1 (diff) | |
download | mana-client-e228c6d5d499f8a59d215a0c3e6122b8800214fc.tar.gz mana-client-e228c6d5d499f8a59d215a0c3e6122b8800214fc.tar.bz2 mana-client-e228c6d5d499f8a59d215a0c3e6122b8800214fc.tar.xz mana-client-e228c6d5d499f8a59d215a0c3e6122b8800214fc.zip |
Didn't clean up after myself in the last commit.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/colordb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/colordb.cpp b/src/resources/colordb.cpp index bb5bd0d1..d9c76f18 100644 --- a/src/resources/colordb.cpp +++ b/src/resources/colordb.cpp @@ -55,6 +55,7 @@ void ColorDB::load() logger->log("Trying TMW's color file, %s.", TMW_COLOR_FILE); TMWHair = true; + delete doc; doc = new XML::Document(TMW_COLOR_FILE); root = doc->rootNode(); if (!root || !xmlStrEqual(root->name, BAD_CAST "colors")) @@ -83,6 +84,7 @@ void ColorDB::load() } } + delete doc; mLoaded = true; } |