diff --git a/modules/libjar/nsJARInputStream.cpp b/modules/libjar/nsJARInputStream.cpp index 53c89ef2854..0b08edc938f 100644 --- a/modules/libjar/nsJARInputStream.cpp +++ b/modules/libjar/nsJARInputStream.cpp @@ -276,6 +276,9 @@ nsJARInputStream::IsNonBlocking(bool *aNonBlocking) NS_IMETHODIMP nsJARInputStream::Close() { + if (mMode == MODE_INFLATE) { + inflateEnd(&mZs); + } mMode = MODE_CLOSED; mFd = nsnull; return NS_OK;