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