[Scummvm-git-logs] scummvm master -> 4a945162c5c53d3d8237a1feef4bdf067ff61874

dreammaster dreammaster at scummvm.org
Sun Aug 13 02:18:01 CEST 2017


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

Summary:
4a945162c5 COMMON: Added freeing notes to zlib wrapper methods


Commit: 4a945162c5c53d3d8237a1feef4bdf067ff61874
    https://github.com/scummvm/scummvm/commit/4a945162c5c53d3d8237a1feef4bdf067ff61874
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-08-12T20:17:56-04:00

Commit Message:
COMMON: Added freeing notes to zlib wrapper methods

Changed paths:
    common/zlib.h


diff --git a/common/zlib.h b/common/zlib.h
index 5adba64..c8877e9 100644
--- a/common/zlib.h
+++ b/common/zlib.h
@@ -111,6 +111,7 @@ bool inflateZlibInstallShield(byte *dst, uint dstLen, const byte *src, uint srcL
  * still need the length carried along with the stream, and you know
  * the decompressed length at wrap-time, then it can be supplied as knownSize
  * here. knownSize will be ignored if the GZip-stream DOES include a length.
+ * The created stream also becomes responsible for freeing the passed stream.
  *
  * It is safe to call this with a NULL parameter (in this case, NULL is
  * returned).
@@ -125,6 +126,7 @@ SeekableReadStream *wrapCompressedReadStream(SeekableReadStream *toBeWrapped, ui
  * transparent on-the-fly compression. The compressed data is written in the
  * gzip format, unless ZLIB support has been disabled, in which case the given
  * stream is returned unmodified (and in particular, not wrapped).
+ * The created stream also becomes responsible for freeing the passed stream.
  *
  * It is safe to call this with a NULL parameter (in this case, NULL is
  * returned).





More information about the Scummvm-git-logs mailing list