зеркало из https://github.com/mozilla/pjs.git
Do not delete the nsIInputStream. Call Release() instead. Reference counting is important!!
This commit is contained in:
Родитель
b8d6cbe04a
Коммит
d7ed7309aa
|
@ -54,7 +54,7 @@ CScanner::CScanner(nsIURL* aURL,eParseMode aMode) : mBuffer("") {
|
||||||
*/
|
*/
|
||||||
CScanner::~CScanner() {
|
CScanner::~CScanner() {
|
||||||
mStream->Close();
|
mStream->Close();
|
||||||
delete mStream;
|
mStream->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ CScanner::CScanner(nsIURL* aURL,eParseMode aMode) : mBuffer("") {
|
||||||
*/
|
*/
|
||||||
CScanner::~CScanner() {
|
CScanner::~CScanner() {
|
||||||
mStream->Close();
|
mStream->Close();
|
||||||
delete mStream;
|
mStream->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче