Peter 971273e8f8 Add 'submodules/SSignalKit/' from commit '359b2ee7c9f20f99f221f78e307369ef5ad0ece2'
git-subtree-dir: submodules/SSignalKit
git-subtree-mainline: 4459dc5b47e7db4ea1adb3a43a4324d1c2f9feab
git-subtree-split: 359b2ee7c9f20f99f221f78e307369ef5ad0ece2
2019-06-11 18:57:57 +01:00

28 lines
360 B
Objective-C

#import "DeallocatingObject.h"
@interface DeallocatingObject ()
{
bool *_deallocated;
}
@end
@implementation DeallocatingObject
- (instancetype)initWithDeallocated:(bool *)deallocated
{
self = [super init];
if (self != nil)
{
_deallocated = deallocated;
}
return self;
}
- (void)dealloc
{
*_deallocated = true;
}
@end