On Nov 18, 2008, at 12:43 AM, Brian Stern wrote:


On Nov 18, 2008, at 12:34 AM, Jonathan Hess wrote:


The solution to a memory leak should never be an unbalanced release.

What I did to fix this was to add all of the properties to all of the outlets so they'd all be retained through those properties. Then I added all the releases to all the deallocs to match those retains.

From the later messages in this thread, it looks you didn't insert an unbalanced retain after all. The retains and releases were balanced, but the code wasn't executing as expected because the setters weren't being used because the outlets had different names than the properties.

If you do encounter a leak like this in the future, please head my advice. Inserting a unbalanced retain or release might fix a symptom, but is likely to come back up as a hard to debug problem in the future.

Good Luck -
Jon Hess



--
Brian Stern
[EMAIL PROTECTED]



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jhess%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to