summaryrefslogtreecommitdiff
path: root/src/gui/skin.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-25 12:27:12 -0600
committerIra Rice <irarice@gmail.com>2009-03-25 12:27:12 -0600
commit5be896d25adc77aedd4a5261277e690a34a64697 (patch)
tree94502daadbf053cf193afb2987680427953f1c5a /src/gui/skin.cpp
parent79b6dfb373e3a7165ff2dfa5563d73560b15212d (diff)
downloadmana-5be896d25adc77aedd4a5261277e690a34a64697.tar.gz
mana-5be896d25adc77aedd4a5261277e690a34a64697.tar.bz2
mana-5be896d25adc77aedd4a5261277e690a34a64697.tar.xz
mana-5be896d25adc77aedd4a5261277e690a34a64697.zip
Fixed a static leak in skin loading.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/skin.cpp')
-rw-r--r--src/gui/skin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/skin.cpp b/src/gui/skin.cpp
index 515ef01b..e87f6761 100644
--- a/src/gui/skin.cpp
+++ b/src/gui/skin.cpp
@@ -211,6 +211,8 @@ Skin* SkinLoader::load(const std::string &filename,
logger->log("Finished loading Skin.");
+ delete doc;
+
// Hard-coded for now until we update the above code to look for window buttons.
Image* closeImage = resman->getImage("graphics/gui/close_button.png");