Forráskód Böngészése

Fix a mistake call to inflateEnd when it should be deflateEnd.

mingodad 13 éve
szülő
commit
4a79190fef
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      ext/fpdf.cpp

+ 1 - 1
ext/fpdf.cpp

@@ -74,7 +74,7 @@ std::string & gzcompress (std::string & dest, std::string const & src)
             break;
             break;
         if (err != Z_OK)
         if (err != Z_OK)
         {
         {
-            inflateEnd(&stream);
+            deflateEnd(&stream);
             throw "Could not uncompress data !";
             throw "Could not uncompress data !";
         }
         }
         nExtraChunks += 1;
         nExtraChunks += 1;