Bug 1087622 - Replace moz_xcalloc with nsTArray to avoid memory leak. r=hchang, r=khuey, a=bajaj