Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/DPPPropertyAttribute.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ - (id) initWithClass:(id)class propertyName:(NSString*)propertyName
return self;

const char *p = attrs;
char retentionMethod;
char retentionMethod = 0;
BOOL atomic = YES;
BOOL weak = NO;
do
Expand Down
10 changes: 4 additions & 6 deletions Classes/NSObject+DProperty.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,10 @@ + (NSMutableDictionary*)DPP_keysDictionary
{
NSMutableDictionary *dict = objc_getAssociatedObject(self, &DPPPropertyDictionaryKey);
if(dict == nil){
@synchronized(dict){
dict = objc_getAssociatedObject(self, &DPPPropertyDictionaryKey);
if(dict == nil){
dict = [NSMutableDictionary dictionary];
self.DPP_keysDictionary = dict;
}
dict = objc_getAssociatedObject(self, &DPPPropertyDictionaryKey);
if(dict == nil){
dict = [NSMutableDictionary dictionary];
self.DPP_keysDictionary = dict;
}
}
return dict;
Expand Down