mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
384ab4003a
commit
cdc0560ce6
5 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue