Autorelease image returned by [provideNewButtonImage].

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17351 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-07-26 13:26:35 +00:00
parent 5e14596773
commit 0f106ebecb

View file

@ -84,7 +84,7 @@
NSString *file = [bundle pathForResource: NSStringFromClass(myClass)
ofType:@"tiff"];
return [[NSImage alloc] initWithContentsOfFile: file];
return AUTORELEASE([[NSImage alloc] initWithContentsOfFile: file]);
}
//