- Fix PNObject dealloc (Remove ProtectedProperties)
This commit is contained in:
parent
7de50f7833
commit
f4775cd4ff
@ -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