diff --git a/ChangeLog b/ChangeLog index 50224306d..2095c3117 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-10-27 Fred Kiefer + + * Source/NSBitmapImageRep.m (+imageRepWithData:): Add missing AUTORELEASE. + 2011-10-26 Eric Wasylishen * Source/NSCell.m: Read/write NSLineBreakMode from the bits masked off diff --git a/Source/NSBitmapImageRep.m b/Source/NSBitmapImageRep.m index b41866e3f..b50578e4c 100644 --- a/Source/NSBitmapImageRep.m +++ b/Source/NSBitmapImageRep.m @@ -180,7 +180,7 @@ */ + (id) imageRepWithData: (NSData *)imageData { - return [[self alloc] initWithData: imageData]; + return AUTORELEASE([[self alloc] initWithData: imageData]); } /**

Returns an array containing newly allocated NSBitmapImageRep @@ -275,7 +275,8 @@ imageRep = [[self alloc] _initFromTIFFImage: image number: i]; if (imageRep) { - [array addObject: AUTORELEASE(imageRep)]; + [array addObject: imageRep]; + RELEASE(imageRep); } } NSTiffClose(image);