Autorelease dnum

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-08-15 14:47:50 +00:00
parent d6e3385d84
commit bc8945c196

View file

@ -538,6 +538,7 @@ static NSDecimalNumber *one;
NSDecimalNumber *dnum;
num = [self doubleValue];
dnum = [[NSDecimalNumber alloc] initWithBytes: &num objCType: "d"];
AUTORELEASE(dnum);
return [dnum decimalValue];
}
@end