diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 13:37:38 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 13:37:38 -0600 |
commit | c2e4a7a70971355f1446bb01053af8a1da8c98e1 (patch) | |
tree | db1fb6db7ba97a0041b8a08f01746617f9f681c7 /src | |
parent | 2ff5ba5d01d79c0c3781ab160b023a62b14d26e6 (diff) | |
download | mana-client-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.gz mana-client-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.bz2 mana-client-c2e4a7a70971355f1446bb01053af8a1da8c98e1.tar.xz mana-client-c2e4a7a70971355f1446bb01053af8a1da8c98e1.zip |
Fix a memory leak in dropdown
Diffstat (limited to 'src')
-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 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) |