summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 13:37:38 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 15:00:57 -0600
commit6b538196a799525d8ad4bf5cb5affe87745d4242 (patch)
treeeb0a772a69a3fcf15ced5f021032645370dfe488 /src
parenta34d8a88df817371823e8e036b3a9208f8d5ba85 (diff)
downloadmana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.gz
mana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.bz2
mana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.xz
mana-6b538196a799525d8ad4bf5cb5affe87745d4242.zip
Fix a memory leak in dropdown
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/dropdown.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 035ce5d7..7036c2ee 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -108,6 +108,9 @@ DropDown::~DropDown()
for_each(skin.grid, skin.grid + 9, dtor<Image*>());
}
+
+ gcn::ListModel *listModel = getListModel();
+ if (listModel) delete listModel;
}
void DropDown::draw(gcn::Graphics* graphics)