Leak in NSData +dataWithContentsOfURL:
Leak in NSData +dataWithContentsOfURL:
- Subject: Leak in NSData +dataWithContentsOfURL:
- From: Jonathan Feinberg <email@hidden>
- Date: Thu, 14 Mar 2002 20:42:17 -0500
I finally managed to chase down the memory leak in my app. I believe
that the NSData class method dataWithContentsOfURL:(NSURL *)url leaks
memory. I have hacked up a quick demo, which you'll find at
http://MrFeinberg.com/leak.html
The bottom line is that the method allocates memory when constructing
the NSData object, but the memory is not released when the NSData is
released.
If any of you folks download and build the demo, I'd be very curious
to hear about your experience.
--
Jonathan Feinberg email@hidden Inwood, NY, NY
http://MrFeinberg.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.