[macos] ASCTabsMulticastDelegate: prevent retain cycles

This commit is contained in:
SimplestStudio
2025-12-29 19:15:48 +01:00
parent e4163ccb2c
commit 03ac3428c2

View File

@ -55,12 +55,12 @@ static NSString * const kASCTabsMulticastDelegateKey = @"asctabsmulticastDelegat
@implementation ASCTabsMulticastDelegate {
// the array of observing delegates
NSMutableArray* _delegates;
NSHashTable* _delegates;
}
- (id)init {
if (self = [super init]) {
_delegates = [NSMutableArray array];
_delegates = [NSHashTable weakObjectsHashTable];
}
return self;
}