]> git.saurik.com Git - wxWidgets.git/blobdiff - src/zlib/inflate.c
Fix for probably rare but potential refcount leak.
[wxWidgets.git] / src / zlib / inflate.c
index a53b5c7446ebd7f097942faa28618cb897a51169..be67fd6920056b9cad0b8d871f36ee8c1c7a2051 100644 (file)
@@ -861,6 +861,9 @@ int flush;
                 }
             }
 
+            if (state->mode == BAD)
+                break;
+
             /* build code tables */
             state->next = state->codes;
             state->lencode = (code const FAR *)(state->next);