mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
b81c09b121
commit
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user