diff options
-rw-r--r-- | engines/cge/bitmap.cpp | 2 | ||||
-rw-r--r-- | engines/cge/sound.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp index 60b6cc90fa..df68491bd5 100644 --- a/engines/cge/bitmap.cpp +++ b/engines/cge/bitmap.cpp @@ -165,7 +165,7 @@ Bitmap &Bitmap::operator = (const Bitmap &bmp) { _h = bmp._h; _m = NULL; _map = 0; - free(_v); + delete[] _v; if (v0 == NULL) _v = NULL; else { diff --git a/engines/cge/sound.cpp b/engines/cge/sound.cpp index 8e60d851a4..a3895958f0 100644 --- a/engines/cge/sound.cpp +++ b/engines/cge/sound.cpp @@ -228,7 +228,7 @@ void MusicPlayer::killMidi() { Audio::MidiPlayer::stop(); if (_data != NULL) { - delete _data; + free(_data); _data = NULL; } } |