diff options
-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; |