mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
[macos] ASCTabsMulticastDelegate: prevent retain cycles
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user