fixup memory allocation problem

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-02-17 06:55:50 +00:00
parent 2763f73a6c
commit ffad49b40b
3 changed files with 9 additions and 3 deletions

View file

@ -471,6 +471,8 @@ static NSUInteger _defaultBehavior = 0;
- (id) initWithCoder: (NSCoder*)decoder
{
GS_CREATE_INTERNAL(NSNumberFormatter)
if ([decoder allowsKeyedCoding])
{
if ([decoder containsValueForKey: @"NS.allowsfloats"])