diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-25 12:27:12 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-25 12:27:12 -0600 |
commit | 5be896d25adc77aedd4a5261277e690a34a64697 (patch) | |
tree | 94502daadbf053cf193afb2987680427953f1c5a /src/gui | |
parent | 79b6dfb373e3a7165ff2dfa5563d73560b15212d (diff) | |
download | mana-client-5be896d25adc77aedd4a5261277e690a34a64697.tar.gz mana-client-5be896d25adc77aedd4a5261277e690a34a64697.tar.bz2 mana-client-5be896d25adc77aedd4a5261277e690a34a64697.tar.xz mana-client-5be896d25adc77aedd4a5261277e690a34a64697.zip |
Fixed a static leak in skin loading.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/skin.cpp | 2 |
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"); |