зеркало из https://github.com/mozilla/gecko-dev.git
Fix FTP leak by breaking cycle in nsFtpControlConnection::Disconnect. b=94979 r=dougt sr=darin
This commit is contained in:
Родитель
85b356e352
Коммит
9e9af66a65
|
@ -220,8 +220,14 @@ nsFtpControlConnection::Disconnect(nsresult status)
|
|||
mConnected = PR_FALSE;
|
||||
}
|
||||
|
||||
if (mWriteRequest) mWriteRequest->Cancel(status);
|
||||
if (mReadRequest) mReadRequest->Cancel(status);
|
||||
if (mWriteRequest) {
|
||||
mWriteRequest->Cancel(status);
|
||||
mWriteRequest = nsnull;
|
||||
}
|
||||
if (mReadRequest) {
|
||||
mReadRequest->Cancel(status);
|
||||
mReadRequest = nsnull;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче