mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 569454 bad ownership model for allProperties in GRE_GetGREPathWithProperties, r+a=bsmedberg
This commit is contained in:
parent
971a1bf176
commit
ef46bfc213
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user