mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix recursive creation of value transformers.
This commit is contained in:
parent
e87d481f64
commit
d6d2fa9a74
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2020-06-11 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Source/NSValueTransformer.m:
|
||||
Fix recursive creation of value transformers.
|
||||
* Tests/base/NSValueTransformer/basic.m:
|
||||
Add tests for NSValueTransformer.
|
||||
|
||||
2020-06-06 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Source/NSBundle.m: Extend NSBundle resources support to handle
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
// non-abstract methods
|
||||
|
||||
static NSMutableDictionary *registry = nil;
|
||||
static NSLock *lock = nil;
|
||||
static NSRecursiveLock *lock = nil;
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ static NSLock *lock = nil;
|
|||
{
|
||||
NSValueTransformer *t;
|
||||
|
||||
lock = [NSLock new];
|
||||
lock = [NSRecursiveLock new];
|
||||
[[NSObject leakAt: &lock] release];
|
||||
registry = [[NSMutableDictionary alloc] init];
|
||||
[[NSObject leakAt: ®istry] release];
|
||||
|
|
Loading…
Reference in a new issue