diff --git a/Pod/Classes/PNObject.m b/Pod/Classes/PNObject.m index e7d3cab..7c2567c 100644 --- a/Pod/Classes/PNObject.m +++ b/Pod/Classes/PNObject.m @@ -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