mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
more leak cleanup stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33349 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1685ca1b68
commit
e78ceb4c96
10 changed files with 165 additions and 68 deletions
|
@ -101,6 +101,13 @@ static SEL oaiSel;
|
|||
static SEL remSel;
|
||||
static SEL rlSel;
|
||||
|
||||
+ (void) atExit
|
||||
{
|
||||
DESTROY(defaultPlaceholderArray);
|
||||
DESTROY(placeholderLock);
|
||||
DESTROY(placeholderMap);
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSArray class])
|
||||
|
@ -129,6 +136,7 @@ static SEL rlSel;
|
|||
placeholderMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks, 0);
|
||||
placeholderLock = [NSLock new];
|
||||
[self registerAtExit];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue