diff --git a/mozilla/xpcom/ds/nsCOMArray.cpp b/mozilla/xpcom/ds/nsCOMArray.cpp index 9c28266c36c..bb80e7061f9 100644 --- a/mozilla/xpcom/ds/nsCOMArray.cpp +++ b/mozilla/xpcom/ds/nsCOMArray.cpp @@ -47,15 +47,9 @@ PR_STATIC_CALLBACK(PRBool) ReleaseObjects(void* aElement, void*); // object gets another AddRef() nsCOMArray_base::nsCOMArray_base(const nsCOMArray_base& aOther) { - PRInt32 count = aOther.Count(); // make sure we do only one allocation - mArray.SizeTo(count); - - PRInt32 i; - for (i=0; i