fix unarchiving bug and tidy

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23275 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-13 11:25:13 +00:00
parent 384ab4003a
commit cdc0560ce6
5 changed files with 10 additions and 8 deletions

View file

@ -312,6 +312,7 @@ static NSMapTable globalClassMap = 0;
NS_HANDLER
{
DESTROY(u);
DESTROY(o);
[localException raise];
}
NS_ENDHANDLER
@ -323,12 +324,9 @@ static NSMapTable globalClassMap = 0;
NSData *d;
id o;
// CREATE_AUTORELEASE_POOL(pool);
d = [NSData dataWithContentsOfFile: aPath];
o = [self unarchiveObjectWithData: d];
// RETAIN(o);
// RELEASE(pool);
return AUTORELEASE(o);
return o;
}
- (BOOL) allowsKeyedCoding