aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/gfx.cpp3
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);