Merge branch 'develop' into 'master'
- Fix PNObject dealloc (Remove ProtectedProperties) See merge request !7
This commit is contained in:
commit
13618a74e6
1 file changed
+3
-3
@@ -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
|
||||
Reference in new issue
Block a user