[Adium-devl] Revision 14f474ebb80f

Evan Schoenberg evan.s at dreskin.net
Thu Apr 23 02:55:54 UTC 2009


On Apr 22, 2009, at 7:13 PM, Zachary West wrote:

> In http://hg.adiumx.com/adium/rev/14f474ebb80f, I removed the proxy
> object release/retain.
>
> This was happening:
>
> LO retains PO.
> PO retains LO.

[Why is/how is/is] the latter true?

@property (nonatomic, assign) id listObject;

		proxy = [[AIProxyListObject alloc] init];
		proxy.listObject = inListObject;

-Evan

>
> LO is told to remove PO, which causes -release to be called on PO.
> PO then releases LO, which causes it to deallocate.
>
> PO is still around, but its LO is released.
> PO gets removed somewhere, tries to deallocate its LO, crashes.
>
> Is someone better at memory management able to fix this properly?
>
> Zac
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090422/6898f9ed/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090422/6898f9ed/attachment.sig>


More information about the devel mailing list