diff --git a/mozilla/xpcom/ds/nsVoidArray.cpp b/mozilla/xpcom/ds/nsVoidArray.cpp index 8ebc665c973..47726dd10ac 100644 --- a/mozilla/xpcom/ds/nsVoidArray.cpp +++ b/mozilla/xpcom/ds/nsVoidArray.cpp @@ -96,6 +96,8 @@ nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other) SetArraySize(otherCount); mImpl->mCount = otherCount; SetArrayOwner(PR_TRUE); + + nsCRT::memcpy(mImpl->mArray, other.mImpl->mArray, mImpl->mCount * sizeof(void*)); } } else {