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