diff options
author | Eugene Sandulenko | 2006-01-29 02:27:10 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-01-29 02:27:10 +0000 |
commit | 4780ab9223293243fdeadbda490eeea25aba2072 (patch) | |
tree | 9cbf33b790e67b8ca89cd59195f183075e7767cd /gob/cdrom.cpp | |
parent | bdac3715992d457e30eb3874ac47a60e4632acb7 (diff) | |
download | scummvm-rg350-4780ab9223293243fdeadbda490eeea25aba2072.tar.gz scummvm-rg350-4780ab9223293243fdeadbda490eeea25aba2072.tar.bz2 scummvm-rg350-4780ab9223293243fdeadbda490eeea25aba2072.zip |
Patch #1417631: "gobliiins cleanup". Thanks, wjp.
svn-id: r20283
Diffstat (limited to 'gob/cdrom.cpp')
-rw-r--r-- | gob/cdrom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gob/cdrom.cpp b/gob/cdrom.cpp index e33ec130e6..69c92f7038 100644 --- a/gob/cdrom.cpp +++ b/gob/cdrom.cpp @@ -86,14 +86,14 @@ void CDROM::readLIC(const char *fname) { _vm->_dataio->seekData(handle, pos, SEEK_CUR); } - _LICbuffer = (byte *)malloc(_numTracks * 22); + _LICbuffer = new byte[_numTracks * 22]; _vm->_dataio->readData(handle, (char *)_LICbuffer, _numTracks * 22); _vm->_dataio->closeData(handle); } void CDROM::freeLICbuffer(void) { - free(_LICbuffer); + delete[] _LICbuffer; _LICbuffer = 0; } |