mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:30:49 +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
9ed59b06a9
commit
953db32805
2 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue