• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory Leaks in CocoaEcho Sample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Leaks in CocoaEcho Sample


  • Subject: Re: Memory Leaks in CocoaEcho Sample
  • From: Jens Beuckenhauer <email@hidden>
  • Date: Thu, 23 Oct 2008 00:31:42 +0200

Hello,

To move beyond the memory leaks in an untouched version of EchoClient, the only thing you need to do is remove the retain calls in openStreams. The call to -[NSNetService getInputStream:outputStream:] calls CFStreamCreatePairWithSocketToNetService, which is a "create" function.

To verify this, the memory leak will be exacerbated every time you select and deselect a service.

I tried that, but the leaks are still there if I select and deselect the service several times. (Not the first time, but later on)...


Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Re: Memory Leaks in CocoaEcho Sample (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: commitEditing
  • Next by Date: Re: When does Cocoa fall apart? (Run loops)
  • Previous by thread: Re: Memory Leaks in CocoaEcho Sample
  • Next by thread: Re: Memory Leaks in CocoaEcho Sample
  • Index(es):
    • Date
    • Thread