Merge branch 'develop' into 'master'
- Fix PNObject dealloc (Remove ProtectedProperties) See merge request !7
This commit is contained in:
commit
13618a74e6
@ -323,14 +323,14 @@
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
|
||||
NSDictionary *properties = [PNObject propertiesForClass:self.class];
|
||||
|
||||
for (NSString *propertyName in properties) {
|
||||
|
||||
if ([[PNObject protectedProperties] containsObject:propertyName]) {
|
||||
continue;
|
||||
}
|
||||
[self removeObserver:self forKeyPath:propertyName];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user