libmng/libmng-1.0.9-dont-leak-zlib-streams.diff
Ismail Dönmez 92f58fd292 Accepting request 304191 from home:pluskalm:branches:graphics
- Update to 2.0.3
  * More changes to libmng_types.h.
- Cleanup spec file with spec-cleaner
- Remove old obsolete/provide
- Use %cmake macro when building
- Remove no longer needed fix-header-include.patch

OBS-URL: https://build.opensuse.org/request/show/304191
OBS-URL: https://build.opensuse.org/package/show/graphics/libmng?expand=0&rev=19
2015-04-28 09:28:29 +00:00

15 lines
521 B
Diff

Index: libmng_zlib.c
===================================================================
--- libmng_zlib.c.orig
+++ libmng_zlib.c
@@ -163,6 +163,9 @@ mng_retcode mngzlib_inflateinit (mng_dat
#ifdef MNG_SUPPORT_TRACE
MNG_TRACE (pData, MNG_FN_ZLIB_INFLATEINIT, MNG_LC_START);
#endif
+
+ if (pData->bInflating) /* free the old zlib structures */
+ inflateEnd(&pData->sZlib);
/* initialize zlib structures and such */
iZrslt = inflateInit (&pData->sZlib);