summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 13:37:38 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-11 13:37:38 -0600
commitc2e4a7a70971355f1446bb01053af8a1da8c98e1 (patch)
treedb1fb6db7ba97a0041b8a08f01746617f9f681c7 /src
parent2ff5ba5d01d79c0c3781ab160b023a62b14d26e6 (diff)
downloadmana-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.gz
mana-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.bz2
mana-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.xz
mana-c2e4a7a70971355f1446bb01053af8a1da8c98e1.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 e1a24cb7..c91a8524 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -107,6 +107,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)