diff options
author | Martin Kiewitz | 2009-10-08 18:34:49 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-08 18:34:49 +0000 |
commit | 03ee8c00beaab731a8e5e4347aa9711eed2523b1 (patch) | |
tree | 825b05f21ed3477144edc33124a9105951efb3a3 /engines/sci/gui/gui_gfx.cpp | |
parent | aab278974af34f218d7e3b4977ec259399feaf51 (diff) | |
download | scummvm-rg350-03ee8c00beaab731a8e5e4347aa9711eed2523b1.tar.gz scummvm-rg350-03ee8c00beaab731a8e5e4347aa9711eed2523b1.tar.bz2 scummvm-rg350-03ee8c00beaab731a8e5e4347aa9711eed2523b1.zip |
SCI/newgui: remarks about _menuPort, uninitialized usage in SciGuiPalette removed, _menuPort and _mainPort get deleted in destructor
svn-id: r44790
Diffstat (limited to 'engines/sci/gui/gui_gfx.cpp')
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 4092d364ae..6342e39d2b 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -44,6 +44,8 @@ SciGuiGfx::SciGuiGfx(EngineState *state, SciGuiScreen *screen, SciGuiPalette *pa } SciGuiGfx::~SciGuiGfx() { + delete _mainPort; + delete _menuPort; } void SciGuiGfx::init() { @@ -51,14 +53,13 @@ void SciGuiGfx::init() { _textFonts = NULL; _textFontsCount = 0; _textColors = NULL; _textColorsCount = 0; - // FIXME: _mainPort is never freed - // FIXME: _mainPort has no id, and is not known to the WindowManager -- this could lead to problems + // _mainPort is not known to windowmanager, that's okay according to sierra sci + // its not even used currently in our engine _mainPort = new GuiPort(0); SetPort(_mainPort); OpenPort(_mainPort); - // FIXME: _menuPort is never freed - // FIXME: _menuPort has no id, and is not known to the WindowManager -- this could lead to problems + // _menuPort has actually hardcoded id 0xFFFF. Its not meant to be known to windowmanager according to sierra sci _menuPort = new GuiPort(0); OpenPort(_menuPort); SetFont(0); |