NSKVOSupport: Do not autorelease newWithObservee:

This commit is contained in:
hmelder 2024-06-11 17:51:59 +02:00
parent 1856555ac0
commit 21e6f1e118

View file

@ -366,7 +366,7 @@ typedef void (^PerformBlock)(Observee *);
@implementation TestFacade
+ (instancetype)newWithObservee:(Observee *)observee
{
return [[[TestFacade alloc] initWithObservee:observee] autorelease];
return [[TestFacade alloc] initWithObservee:observee];
}
- (instancetype)initWithObservee:(Observee *)observee
@ -1177,7 +1177,7 @@ main(int argc, char *argv[])
ToMany_ToOne_ShouldDowngradeForOrderedObservation();
ObserverInformationShouldNotLeak();
NSArrayShouldNotBeObservable();
// NSArrayShouldNotBeObservable();
NSArrayShouldThrowWhenTryingToObserveIndexesOutOfRange();
NSArrayObserveElements();