diff options
author | Nipun Garg | 2019-08-05 11:48:15 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:32 +0200 |
commit | 16fd2269027c5ccaa398baef8f1c841c2b2f2940 (patch) | |
tree | 98a6b3c6576a140b5cc0526e9505d5f6c71db63c /engines | |
parent | 43ad1af61e2c2840379234fadaf32e27d83ffba8 (diff) | |
download | scummvm-rg350-16fd2269027c5ccaa398baef8f1c841c2b2f2940.tar.gz scummvm-rg350-16fd2269027c5ccaa398baef8f1c841c2b2f2940.tar.bz2 scummvm-rg350-16fd2269027c5ccaa398baef8f1c841c2b2f2940.zip |
HDB: Remove NULL deletes
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/gfx.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 2a8a98aebe..16c5879edf 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -421,7 +421,6 @@ Picture *Gfx::loadPic(const char *picName) { Picture *pic = new Picture; Common::SeekableReadStream *stream = g_hdb->_fileMan->findFirstData(picName, TYPE_PIC); if (!stream) { - delete stream; return NULL; } pic->load(stream); @@ -433,7 +432,6 @@ Tile *Gfx::loadTile(const char *tileName) { Tile *tile = new Tile; Common::SeekableReadStream *stream = g_hdb->_fileMan->findFirstData(tileName, TYPE_TILE32); if (!stream) { - delete stream; return NULL; } tile->load(stream); @@ -445,7 +443,6 @@ Tile *Gfx::loadIcon(const char *tileName) { Tile *tile = new Tile; Common::SeekableReadStream *stream = g_hdb->_fileMan->findFirstData(tileName, TYPE_ICON32); if (!stream) { - delete stream; return NULL; } tile->load(stream); |