diff options
author | Max Horn | 2003-09-11 10:32:15 +0000 |
---|---|---|
committer | Max Horn | 2003-09-11 10:32:15 +0000 |
commit | 81f10baa68d36f42f4988b971dff312439906a2f (patch) | |
tree | a58d9b322203713d9bc8a0de0531dfcab7c85904 /scumm/string.cpp | |
parent | a3bb9f81e0502f66e368b5e58861ffbb5cfdcd41 (diff) | |
download | scummvm-rg350-81f10baa68d36f42f4988b971dff312439906a2f.tar.gz scummvm-rg350-81f10baa68d36f42f4988b971dff312439906a2f.tar.bz2 scummvm-rg350-81f10baa68d36f42f4988b971dff312439906a2f.zip |
cleanup
svn-id: r10169
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r-- | scumm/string.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index a7148b6644..74a57f7198 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -76,11 +76,10 @@ void Scumm::unkMessage2() { if (_string[3].color == 0) _string[3].color = 4; - InfoDialog* dialog = new InfoDialog(_newgui, this, (char*)buf); // FIXME: I know this is the right thing to do for MI1 and MI2. For // all other games it's just a guess. - VAR(VAR_KEYPRESS) = runDialog (dialog); - delete dialog; + InfoDialog dialog(_newgui, this, (char*)buf); + VAR(VAR_KEYPRESS) = runDialog(dialog); _messagePtr = tmp; } |