Re: Why is this code leaking memory?
Re: Why is this code leaking memory?
- Subject: Re: Why is this code leaking memory?
- From: email@hidden
- Date: Thu, 19 Dec 2002 20:47:57 +0100
On jeudi, dicembre 19, 2002, at 08:31 PM, Jan Van Boghout wrote:
Hello everybody,
I have two lines that load an imageRep of an image on the HD, and
they're leaking memory like hell. Any ideas why this is happening? It
shouldn't, that's the problem.
Code:
imageRep = [NSBitmapImageRep imageRepWithData:[NSData
dataWithContentsOfFile:@"/Library/Desktop Pictures/Aqua Blue.jpg"]];
[imageRep release];
Why are you calling release on an autorelease object?
_______________________________________________
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.