fixes bug 324981 "nsTArray crash in RemoveElement" r=bsmedberg

This commit is contained in:
darin@meer.net
2006-01-30 17:16:50 +00:00
parent 2b07642ec8
commit a19378f122
2 changed files with 5 additions and 1 deletions

View File

@@ -121,6 +121,10 @@ static PRBool test_basic_array(ElementType *data,
ary.AppendElements(nsnull, 0);
ary.AppendElements(empty);
// See bug 324981
ary.RemoveElement(extra);
ary.RemoveElement(extra);
return PR_TRUE;
}