FROM : ssudre2
DATE : Thu Dec 19 20:47:57 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Dec 19 20:47:57 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Jan Van Boghout | Dec 19, 20:31 | |
| ssudre2 | Dec 19, 20:47 | |
| Dan Wood | Dec 19, 20:52 | |
| Jan Van Boghout | Dec 19, 21:14 | |
| Jan Van Boghout | Dec 19, 21:32 | |
| Andrew Pinski | Dec 20, 05:04 | |
| Jan Van Boghout | Dec 20, 07:06 | |
| matt neuburg | Dec 21, 05:50 | |
| Simon Stapleton | Dec 21, 10:53 |






Cocoa mail archive

