diff options
author | Eugene Sandulenko | 2019-08-08 01:21:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:32 +0200 |
commit | 1157a88cca189e18153088e35ae9bdfec9d629e9 (patch) | |
tree | 8717b90859c38ccc38405ab7cdd0a66719e422a5 | |
parent | 5570f784b6880c94e0dcfa433ea8ffcb53d4d79f (diff) | |
download | scummvm-rg350-1157a88cca189e18153088e35ae9bdfec9d629e9.tar.gz scummvm-rg350-1157a88cca189e18153088e35ae9bdfec9d629e9.tar.bz2 scummvm-rg350-1157a88cca189e18153088e35ae9bdfec9d629e9.zip |
HDB: Fix mismatched delete
-rw-r--r-- | engines/hdb/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index e0ded0f817..e44b96e835 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -782,7 +782,7 @@ bool Gfx::loadFont(const char *string) { if (g_hdb->isPPC()) { const int32 ulength = g_hdb->_fileMan->getLength(string, TYPE_FONT); - byte *buffer = new byte[ulength]; + byte *buffer = (byte *)malloc(ulength); stream->read(buffer, ulength); Common::MemoryReadStream memoryStream(buffer, ulength, DisposeAfterUse::YES); delete stream; |