Open maxoly opened 9 years ago
Since @property without memory attributed use strong for memory storage, converter property in the class DCObjectMapping should be marked with weak attribute to avoid potential memory leak.
@property
strong
converter
DCObjectMapping
weak
This
@interface DCObjectMapping : NSObject <DCMapping> .. @property(nonatomic, readonly) id <DCValueConverter> converter; .. @end
Should be changed in this
@interface DCObjectMapping : NSObject <DCMapping> .. @property(nonatomic, readonly, weak) id <DCValueConverter> converter; .. @end
I don't get it why should that reference be weak again?
Since
@property
without memory attributed usestrong
for memory storage,converter
property in the classDCObjectMapping
should be marked withweak
attribute to avoid potential memory leak.This
Should be changed in this