aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/gfx.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-30 03:07:54 +0530
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commit52f2af77f314278451fdc6a4e5a537283c409629 (patch)
tree378c814015f399cc1e575fb22a9c111da359228f /engines/hdb/gfx.cpp
parent469fbe1c8a431fba8f33f41dcce64c64dc13fdb3 (diff)
downloadscummvm-rg350-52f2af77f314278451fdc6a4e5a537283c409629.tar.gz
scummvm-rg350-52f2af77f314278451fdc6a4e5a537283c409629.tar.bz2
scummvm-rg350-52f2af77f314278451fdc6a4e5a537283c409629.zip
HDB: Fix Null-deleting code
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r--engines/hdb/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 80e5ac832a..f380b9ffd1 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -725,9 +725,9 @@ int Gfx::animateTile(int tileIndex) {
}
bool Gfx::loadFont(const char *string) {
+
Common::SeekableReadStream *stream = g_hdb->_fileMan->findFirstData(string, TYPE_FONT);
if (!stream) {
- delete stream;
return false;
}