mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Minor fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13843 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
69ca1d3f93
commit
5c691dfbfe
2 changed files with 9 additions and 4 deletions
|
@ -211,7 +211,7 @@ typedef struct obj_layout *obj;
|
|||
|
||||
#include <base/GSIMap.h>
|
||||
|
||||
static GSIMapTable_t retain_counts = 0;
|
||||
static GSIMapTable_t retain_counts = {0};
|
||||
|
||||
#endif /* !defined(REFCNT_LOCAL) */
|
||||
|
||||
|
@ -288,7 +288,7 @@ NSDecrementExtraRefCountWasZero(id anObject)
|
|||
{
|
||||
return YES;
|
||||
}
|
||||
if (node->value.uint) == 0)
|
||||
if ((node->value.uint) == 0)
|
||||
{
|
||||
GSIMapRemoveKey((GSIMapTable)&retain_counts, (GSIMapKey)anObject);
|
||||
return YES;
|
||||
|
@ -738,7 +738,7 @@ static BOOL double_release_check_enabled = NO;
|
|||
GSSetLocaleC(""); // Set up locale from environment.
|
||||
|
||||
// Create the global lock
|
||||
gnustep_global_lock = [[NSRecursiveLock alloc] init];
|
||||
gnustep_global_lock = [NSRecursiveLock new];
|
||||
|
||||
// Zombie management stuff.
|
||||
zombieMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue