4 ms·
> “Typing self.foo releases and nils the variables.” Yes, if it’s a retain or copy property. > “Just typing foo = nil is a memory leak.” Yes, if you had retain
by zpasternack 15y ago
> “Typing self.foo releases and nils the variables.”
Yes, if it’s a retain or copy property.
> “Just typing foo = nil is a memory leak.”
Yes, if you had retained the object, but not if it were a weak reference. Admittedly, this is a semi-rare scenario.