mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* 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:
parent
fde5f243d8
commit
afe8c3bea5
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue