Merge branch 'develop' into 'master'

- Fix PNObject dealloc (Remove ProtectedProperties)



See merge request !7
This commit is contained in:
Giuseppe Nucifora 2016-01-29 12:43:14 +00:00
commit 13618a74e6

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