mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Correct memory information for opaque personality
This commit is contained in:
parent
18b7dbecb6
commit
76a1b0d92a
1 changed files with 11 additions and 2 deletions
|
@ -308,8 +308,17 @@ relinquishRetainedMemory(const void *item,
|
|||
break;
|
||||
|
||||
case NSPointerFunctionsOpaquePersonality:
|
||||
_x.acquireFunction = 0;
|
||||
_x.relinquishFunction = 0;
|
||||
if (NSPointerFunctionsMachVirtualMemory == memoryType
|
||||
|| NSPointerFunctionsMallocMemory == memoryType)
|
||||
{
|
||||
_x.acquireFunction = acquireMallocMemory;
|
||||
_x.relinquishFunction = relinquishMallocMemory;
|
||||
}
|
||||
else
|
||||
{
|
||||
_x.acquireFunction = 0;
|
||||
_x.relinquishFunction = 0;
|
||||
}
|
||||
_x.descriptionFunction = describePointer;
|
||||
_x.hashFunction = hashShifted;
|
||||
_x.isEqualFunction = equalDirect;
|
||||
|
|
Loading…
Reference in a new issue