зеркало из https://github.com/mozilla/gecko-dev.git
fix memory leak when importing HTML bookmark files. Alloc'ing at the beginning of a loop, releasing at the end, but not releasing before a 'continue' statement in the middle. no bug.
This commit is contained in:
Родитель
b81c09b121
Коммит
427de5cd86
|
@ -761,6 +761,7 @@ static unsigned gFirstUserCollection = 0;
|
|||
// middle of the string. Just bail and dont import this bookmark. The parser should be able
|
||||
// to recover on its own once it gets to the next "<A" token.
|
||||
[tokenScanner release];
|
||||
[tokenTag release];
|
||||
[fileScanner setScanLocation:([fileScanner scanLocation]+1)];
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче