From efb93dad1b64d24e1d61a37e123c4854bf36b629 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Sat, 26 Jul 2003 13:26:35 +0000 Subject: [PATCH] Autorelease image returned by [provideNewButtonImage]. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17351 72102866-910b-0410-8b05-ffd578937521 --- Source/NSColorPicker.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSColorPicker.m b/Source/NSColorPicker.m index 48340c9ff..ef6447470 100644 --- a/Source/NSColorPicker.m +++ b/Source/NSColorPicker.m @@ -84,7 +84,7 @@ NSString *file = [bundle pathForResource: NSStringFromClass(myClass) ofType:@"tiff"]; - return [[NSImage alloc] initWithContentsOfFile: file]; + return AUTORELEASE([[NSImage alloc] initWithContentsOfFile: file]); } //