mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(autorelease): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f55315c36
commit
dc17fc89ce
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <objects/Connection.h>
|
||||
#include <objects/ConnectedCoder.h>
|
||||
#include <objects/eltfuncs.h>
|
||||
#include <objects/AutoreleasePool.h>
|
||||
#include <assert.h>
|
||||
|
||||
static BOOL debugProxies = NO;
|
||||
|
@ -341,6 +342,13 @@ static inline BOOL class_is_kind_of(CLASS self, CLASS aClassObject)
|
|||
return retain_count;
|
||||
}
|
||||
|
||||
- autorelease
|
||||
{
|
||||
/* xxx Problems here if the Connection goes away? */
|
||||
[autorelease_class addObject:self];
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation Object (ForProxy)
|
||||
|
|
Loading…
Reference in a new issue