mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix bug 398880, getElementsByClassName('') leaks an nsVoidArray. r=sayrer, sr=jst, a=blocking1.9+.
This commit is contained in:
parent
1d384e219d
commit
028e550046
@ -1738,6 +1738,8 @@ nsDocument::GetElementsByClassNameHelper(nsINode* aRootNode,
|
||||
elements = new nsContentList(aRootNode, MatchClassNames,
|
||||
DestroyClassNameArray, classes);
|
||||
} else {
|
||||
delete classes;
|
||||
classes = nsnull;
|
||||
elements = new nsBaseContentList();
|
||||
}
|
||||
if (!elements) {
|
||||
|
Loading…
Reference in New Issue
Block a user