diff options
-rw-r--r-- | engines/sword25/package/packagemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/package/packagemanager.cpp b/engines/sword25/package/packagemanager.cpp index c80f0c6c84..def9802386 100644 --- a/engines/sword25/package/packagemanager.cpp +++ b/engines/sword25/package/packagemanager.cpp @@ -186,7 +186,7 @@ byte *PackageManager::getFile(const Common::String &fileName, uint *fileSizePtr) delete in; if (!bytesRead) { - delete buffer; + delete[] buffer; return NULL; } |