mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Patches submitted from May 20 to Aug 28 1997
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2406 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7b12c4af23
commit
a57d791f91
119 changed files with 16409 additions and 1698 deletions
|
@ -93,9 +93,13 @@ static BOOL debug_coder = NO;
|
|||
|
||||
- init
|
||||
{
|
||||
/* Or should we provide some kind of default? */
|
||||
[self shouldNotImplement:_cmd];
|
||||
return self;
|
||||
if ([self class] == [Coder class])
|
||||
{
|
||||
[self shouldNotImplement:_cmd];
|
||||
return nil;
|
||||
}
|
||||
else
|
||||
return [super init];
|
||||
}
|
||||
|
||||
/* We must separate the idea of "closing" a coder and "deallocating"
|
||||
|
@ -262,7 +266,10 @@ static BOOL debug_coder = NO;
|
|||
- (id) initForReadingWithData: (NSData*)data
|
||||
{
|
||||
id ret = [[self class] newReadingFromStream: data];
|
||||
[self release];
|
||||
if ([self retainCount] == 0)
|
||||
[ret autorelease];
|
||||
else
|
||||
[self release];
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue