зеркало из 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
|
NS_IMETHODIMP
|
||||||
nsJARInputStream::Close()
|
nsJARInputStream::Close()
|
||||||
{
|
{
|
||||||
|
if (mMode == MODE_INFLATE) {
|
||||||
|
inflateEnd(&mZs);
|
||||||
|
}
|
||||||
mMode = MODE_CLOSED;
|
mMode = MODE_CLOSED;
|
||||||
mFd = nsnull;
|
mFd = nsnull;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче