From 5be896d25adc77aedd4a5261277e690a34a64697 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 25 Mar 2009 12:27:12 -0600 Subject: Fixed a static leak in skin loading. Signed-off-by: Ira Rice --- src/gui/skin.cpp | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.2.3-70-g09d2