- Fix PNObject dealloc (Remove ProtectedProperties)

This commit is contained in:
Giuseppe Nucifora 2016-01-29 13:42:56 +01:00
parent 7de50f7833
commit f4775cd4ff

View File

@ -323,14 +323,14 @@
- (void)dealloc - (void)dealloc
{ {
NSDictionary *properties = [PNObject propertiesForClass:self.class]; NSDictionary *properties = [PNObject propertiesForClass:self.class];
for (NSString *propertyName in properties) { for (NSString *propertyName in properties) {
if ([[PNObject protectedProperties] containsObject:propertyName]) {
continue;
}
[self removeObserver:self forKeyPath:propertyName]; [self removeObserver:self forKeyPath:propertyName];
} }
} }
@end @end