diff options
Diffstat (limited to 'src/resources')
-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; } |