mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Attempts to prevent leak warnings from static analyser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f94a2ef6b
commit
c7bb84decb
9 changed files with 98 additions and 5 deletions
|
@ -1925,7 +1925,7 @@ NSLog(@"Creating empty user defaults database");
|
|||
enumerator = [_searchList reverseObjectEnumerator];
|
||||
nImp = [enumerator methodForSelector: nextObjectSel];
|
||||
|
||||
dictRep = [NSMutableDictionaryClass allocWithZone: NSDefaultMallocZone()];
|
||||
dictRep = [NSMutableDictionaryClass alloc];
|
||||
dictRep = [dictRep initWithCapacity: 512];
|
||||
addImp = [dictRep methodForSelector: addSel];
|
||||
|
||||
|
@ -1937,7 +1937,8 @@ NSLog(@"Creating empty user defaults database");
|
|||
(*addImp)(dictRep, addSel, dict);
|
||||
}
|
||||
}
|
||||
_dictionaryRep = [dictRep makeImmutableCopyOnFail: NO];
|
||||
[dictRep makeImmutableCopyOnFail: NO];
|
||||
_dictionaryRep = dictRep;
|
||||
}
|
||||
rep = [[_dictionaryRep retain] autorelease];
|
||||
[_lock unlock];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue