Specifically, if you have a property that looks like this,
@property(readwrite, strong) __attribute__((NSObject)) CGLayerRef theLayer;
which you use to treat Core Foundation objects like usual reference counted objects, you need to set this property to NULL in -dealloc, otherwise an extra reference is maintained.
– (void) dealloc
self.theLayer = NULL;
Fixed a minor memory leak for me.