LAB: Replace some uses of malloc() with new

This commit is contained in:
Filippos Karapetis 2015-12-07 11:00:54 +02:00 committed by Willem Jan Palenstijn
parent 156ad539ff
commit 0e886461d0
6 changed files with 18 additions and 16 deletions

View file

@ -129,7 +129,7 @@ LabEngine::~LabEngine() {
delete _music;
delete _anim;
delete _graphics;
free(_rooms);
delete[] _rooms;
for (int i = 0; i < 16; i++)
delete _tiles[i];