diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 13:37:38 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-11 15:00:57 -0600 |
commit | 6b538196a799525d8ad4bf5cb5affe87745d4242 (patch) | |
tree | eb0a772a69a3fcf15ced5f021032645370dfe488 | |
parent | a34d8a88df817371823e8e036b3a9208f8d5ba85 (diff) | |
download | mana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.gz mana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.bz2 mana-6b538196a799525d8ad4bf5cb5affe87745d4242.tar.xz mana-6b538196a799525d8ad4bf5cb5affe87745d4242.zip |
Fix a memory leak in dropdown
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 3 |
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) |