[Scummvm-git-logs] scummvm master -> b94b31d658ec498dbae72ae3172952c5e69d6caa

lephilousophe noreply at scummvm.org
Sun Apr 12 18:23:06 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
b94b31d658 COMMON: Free huffmann tables when deleting the stream


Commit: b94b31d658ec498dbae72ae3172952c5e69d6caa
    https://github.com/scummvm/scummvm/commit/b94b31d658ec498dbae72ae3172952c5e69d6caa
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-04-12T20:22:22+02:00

Commit Message:
COMMON: Free huffmann tables when deleting the stream

Fix #16610

Changed paths:
    common/compression/gzio.cpp


diff --git a/common/compression/gzio.cpp b/common/compression/gzio.cpp
index d8f0d3d2e0c..779f72bc469 100644
--- a/common/compression/gzio.cpp
+++ b/common/compression/gzio.cpp
@@ -231,6 +231,7 @@ public:
 			memcpy(_slide + sizeof(_slide) - dict_size, dict, dict_size);
 		}
 	}
+	~GzioReadStream() override;
 
 	uint32 read(void *dataPtr, uint32 dataSize) override;
 
@@ -568,6 +569,10 @@ huft_free (struct huft *t)
   return 0;
 }
 
+GzioReadStream::~GzioReadStream() {
+  huft_free (_tl);
+  huft_free (_td);
+}
 
 /*
  *  inflate (decompress) the codes in a deflated (compressed) block.




More information about the Scummvm-git-logs mailing list