* 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
This commit is contained in:
Fred Kiefer 2011-10-27 17:07:54 +00:00
parent fde5f243d8
commit afe8c3bea5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2011-10-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep.m (+imageRepWithData:): Add missing AUTORELEASE.
2011-10-26 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSCell.m: Read/write NSLineBreakMode from the bits masked off

View file

@ -180,7 +180,7 @@
*/
+ (id) imageRepWithData: (NSData *)imageData
{
return [[self alloc] initWithData: imageData];
return AUTORELEASE([[self alloc] initWithData: imageData]);
}
/**<p>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);