summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.h
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/listbox.h
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/listbox.h')
-rw-r--r--src/gui/widgets/listbox.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index d5798d66..c0662ed2 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -39,7 +39,9 @@ class ListBox : public gcn::ListBox
/**
* Constructor.
*/
- ListBox(gcn::ListModel *listModel);
+ ListBox(gcn::ListModel *listModel, bool deleteModel = false);
+
+ ~ListBox();
/**
* Draws the list box.
@@ -65,6 +67,8 @@ class ListBox : public gcn::ListBox
private:
static float mAlpha;
+
+ bool mDeleteModel;
};
#endif