mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
More moves towards OSX 10.5 GC compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28054 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
00e2bbb843
commit
bc9468c45f
25 changed files with 553 additions and 282 deletions
|
@ -746,7 +746,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
NSObjectMapValueCallBacks, 0);
|
||||
_timedPerformers = [[NSMutableArray alloc] initWithCapacity: 8];
|
||||
#ifdef HAVE_POLL_F
|
||||
_extra = objc_malloc(sizeof(pollextra));
|
||||
_extra = NSZoneMalloc(NSDefaultMallocZone(), sizeof(pollextra));
|
||||
memset(_extra, '\0', sizeof(pollextra));
|
||||
#endif
|
||||
}
|
||||
|
@ -767,8 +767,8 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
pollextra *e = (pollextra*)_extra;
|
||||
|
||||
if (e->index != 0)
|
||||
objc_free(e->index);
|
||||
objc_free(e);
|
||||
NSZoneFree(NSDefaultMallocZone(), e->index);
|
||||
NSZoneFree(NSDefaultMallocZone(), e);
|
||||
}
|
||||
#endif
|
||||
RELEASE(_contextStack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue