mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix memory leaks
This commit is contained in:
parent
fe7d9b6435
commit
d63b2e0035
1 changed files with 6 additions and 8 deletions
|
@ -777,10 +777,9 @@
|
|||
|
||||
+ (NSUnitFrequency *) millihertz
|
||||
{
|
||||
NSUnitFrequency *result = [[NSUnitFrequency alloc] initWithSymbol: @"mHz"
|
||||
coefficient: 0.001
|
||||
constant: 0.0];
|
||||
return result;
|
||||
return AUTORELEASE([[NSUnitFrequency alloc] initWithSymbol: @"mHz"
|
||||
coefficient: 0.001
|
||||
constant: 0.0]);
|
||||
}
|
||||
|
||||
+ (NSUnitFrequency *) microhertz
|
||||
|
@ -1460,10 +1459,9 @@
|
|||
|
||||
+ (NSUnitVolume *) cubicInches
|
||||
{
|
||||
NSUnitVolume *result = [[NSUnitVolume alloc] initWithSymbol: @"in^3"
|
||||
coefficient: 0.0163871
|
||||
constant: 0.0];
|
||||
return result;
|
||||
return AUTORELEASE([[NSUnitVolume alloc] initWithSymbol: @"in^3"
|
||||
coefficient: 0.0163871
|
||||
constant: 0.0]);
|
||||
}
|
||||
|
||||
+ (NSUnitVolume *) cubicFeet
|
||||
|
|
Loading…
Reference in a new issue