From 953db3280504ed4fcc945baab90528a6e624c793 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Thu, 27 Oct 2011 17:07:54 +0000 Subject: [PATCH] * Source/NSBitmapImageRep.m (+imageRepWithData:): Add missing AUTORELEASE. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34078 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSBitmapImageRep.m | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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);