From 23db3cd9f225d40ff1900dd806630800ecf54aeb Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 20 Aug 2012 03:28:02 +0300 Subject: SAGA: Remove incorrect free() in loadShortenFromStream() This removes a warning and fixes bug #3558052 - "SAGA: use-after-free warning" --- engines/saga/shorten.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/engines/saga/shorten.cpp b/engines/saga/shorten.cpp index 5efc8d1f67..69c27b6a6b 100644 --- a/engines/saga/shorten.cpp +++ b/engines/saga/shorten.cpp @@ -519,9 +519,6 @@ byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, by if (maxLPC > 0) free(lpc); - if (size > 0) - free(unpackedBuffer); - delete gReader; return unpackedBuffer; } -- cgit v1.2.3