diff --git a/Source/NSImage.m b/Source/NSImage.m index 71bf72b0b..906f8549e 100644 --- a/Source/NSImage.m +++ b/Source/NSImage.m @@ -506,8 +506,11 @@ static NSDictionary* nsmapping = nil; - (void) setBackgroundColor: (NSColor *)aColor { - [_color autorelease]; - _color = [aColor retain]; + if (_color != aColor) + { + [_color release]; + _color = [aColor retain]; + } } - (NSColor *)backgroundColor