зеркало из https://github.com/mozilla/pjs.git
Bug 737463 - nsJARInputStream leaks if it is closed before the stream is inflated. r=mwu
This commit is contained in:
Родитель
85686073e3
Коммит
dd4aac7f11
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче