summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 9c6c8dad..20ad23e0 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -236,7 +236,8 @@ Setup_Video::Setup_Video():
particleDetailLabel = new Label(_("Particle detail"));
fontSizeLabel = new Label(_("Font size"));
- mFontSizeDropDown = new DropDown(new FontSizeChoiceListModel, true);
+ mFontSizeListModel = new FontSizeChoiceListModel;
+ mFontSizeDropDown = new DropDown(mFontSizeListModel);
mModeList->setEnabled(true);
@@ -346,6 +347,12 @@ Setup_Video::Setup_Video():
setDimension(gcn::Rectangle(0, 0, 365, 300));
}
+Setup_Video::~Setup_Video()
+{
+ delete mModeListModel;
+ delete mFontSizeListModel;
+}
+
void Setup_Video::apply()
{
// Full screen changes