From: Panayotis K. <pan...@pa...> - 2010-03-25 18:23:18
|
On 25 Μαρ 2010, at 8:02 μ.μ., Joshua Melcon wrote: > _r2.o = [((org_xmlvm_iphone_UIView*) _r0.o) getFrame__]; // R2 comes back ref count += 1 because its a get function > _rtmp.o = _r2.o; // We are overwriting R2 on the next line, so we need to free our +1 afterwords > _r2.o = ((org_xmlvm_iphone_CGRect*) _r2.o)->size_org_xmlvm_iphone_ > CGSize; // R2 has a new value, the old r2 (in tmp) is not needed > [_rtmp.o release]; _rtmp.o = [NSNull null]; // release the += from the first line > [_r2.o retain]; // retaining the value from _r2, presumably because we will be returning soon (can't tell without the rest of the code). > > But, based on this code sequence, everything looks correct? How does _r2.o retain break things? It says that it tries to retain am already fee'd object. Try it for yourself and see ;) |