From f4775cd4ff7a0c9e63c3f36397a512f719ccf135 Mon Sep 17 00:00:00 2001 From: Giuseppe Nucifora Date: Fri, 29 Jan 2016 13:42:56 +0100 Subject: [PATCH] - Fix PNObject dealloc (Remove ProtectedProperties) --- Pod/Classes/PNObject.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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