summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-07 17:10:39 -0700
commited39c71b2b6b47931f352ca07b49f631d6bf713a (patch)
treeb66630214ae3b84aa5e8cb910c2801b2a610012b /src/gui/widgets/dropdown.cpp
parentdca3a657c821925b6a3d6776e7cdcb35608989fe (diff)
downloadmana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.gz
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.bz2
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.tar.xz
mana-ed39c71b2b6b47931f352ca07b49f631d6bf713a.zip
Cleanup some memory issues
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index b8f5b895..80c3747e 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -43,10 +43,10 @@ Image *DropDown::buttons[2][2];
ImageRect DropDown::skin;
float DropDown::mAlpha = 1.0;
-DropDown::DropDown(gcn::ListModel *listModel):
+DropDown::DropDown(gcn::ListModel *listModel, bool deleteModel):
gcn::DropDown::DropDown(listModel,
new ScrollArea,
- new ListBox(listModel))
+ new ListBox(listModel, deleteModel))
{
setFrameSize(2);