Bug 569454 bad ownership model for allProperties in GRE_GetGREPathWithProperties, r+a=bsmedberg

This commit is contained in:
timeless@mozdev.org 2010-12-09 01:22:00 -08:00
parent 971a1bf176
commit ef46bfc213

View File

@ -168,7 +168,7 @@ GRE_GetGREPathWithProperties(const GREVersionRange *versions,
static const GREProperty kExtraProperty =
{ "abi", TARGET_XPCOM_ABI };
GREProperty *allProperties = new GREProperty[propertiesLength + 1];
nsAutoArrayPtr<GREProperty> allProperties(new GREProperty[propertiesLength + 1]);
if (!allProperties)
return NS_ERROR_OUT_OF_MEMORY;