Skip navigation.
 
mlRe: Why is this code leaking memory?
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.

Related mailsAuthorDate
mlWhy is this code leaking memory? Jan Van Boghout Dec 19, 20:31
mlRe: Why is this code leaking memory? ssudre2 Dec 19, 20:47
mlRe: Why is this code leaking memory? Dan Wood Dec 19, 20:52
mlRe: Why is this code leaking memory? Jan Van Boghout Dec 19, 21:14
mlRe: Why is this code leaking memory? Jan Van Boghout Dec 19, 21:32
mlRe: Why is this code leaking memory? Andrew Pinski Dec 20, 05:04
mlRe: Why is this code leaking memory? Jan Van Boghout Dec 20, 07:06
mlRe: Why is this code leaking memory? matt neuburg Dec 21, 05:50
mlRe: Why is this code leaking memory? Simon Stapleton Dec 21, 10:53