3 ms·
Well, sort of. If you do an alloc/init, then you need to release it (or you leak). If you're assigning to self.foo, then you can just release the thing you cre
by einarvollset 17y ago
Well, sort of.
If you do an alloc/init, then you need to release it (or you leak). If you're assigning to self.foo, then you can just release the thing you created after assigning it. If you assigned it to foo, and then release it, then you're in the position I mentioned above.