Bug 1182277, don't leak when using nsAutoTArray inside nsTArray, r=nfroyd

This commit is contained in:
Olli Pettay 2015-07-14 17:05:10 +03:00
parent 909d7df70c
commit 784107ead5

View File

@ -2358,6 +2358,12 @@ public:
}
};
template<class E, size_t N>
struct nsTArray_CopyChooser<nsAutoTArray<E, N>>
{
typedef nsTArray_CopyWithConstructors<nsAutoTArray<E, N>> Type;
};
// Assert that nsAutoTArray doesn't have any extra padding inside.
//
// It's important that the data stored in this auto array takes up a multiple of