diff options
Diffstat (limited to 'engines/startrek/font.cpp')
-rwxr-xr-x | engines/startrek/font.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/startrek/font.cpp b/engines/startrek/font.cpp index a6f583a312..db310425a0 100755 --- a/engines/startrek/font.cpp +++ b/engines/startrek/font.cpp @@ -31,15 +31,13 @@ static const byte CHARACTER_COUNT = 0x80; static const byte CHARACTER_SIZE = 0x40; Font::Font(StarTrekEngine *vm) : _vm(vm) { - Common::SeekableReadStream *fontStream = _vm->openFile("FONT.FNT"); + SharedPtr<Common::SeekableReadStream> fontStream = _vm->openFile("FONT.FNT"); _characters = new Character[CHARACTER_COUNT]; for (byte i = 0; i < CHARACTER_COUNT; i++) fontStream->read(_characters[i].data, CHARACTER_SIZE); - delete fontStream; - #if 0 // Code to dump the font printf ("DUMPING FONT"); |