Stupid me.
In the super class context is stored in a var which is the storage for a
readonly property and I was assigning to the var in the init method without
retaining. So I should be retaining when assigning and doing a release when
calling. I don't know where I got the idea parameters passe
On Aug 23, 2013, at 4:27 AM, Kevin Meaney wrote:
>
> But my feeling is that the analyzer is talking about context. Normally I'd
> consider that an object passed into an init method will consume a retain
> count.
Nope. The only consumed refcount is that of the receiver. How is the analyzer
su
If the context is created, and the init succeeds and returns a valid self, then
you are leaking the context. Get rid of the 'else', since it causes the code to
skip over the release.
On Aug 23, 2013, at 7:27 AM, Kevin Meaney wrote:
> Hi,
>
> I'm using ARC and using Mavdacted and DP5 but I do