Permalink
Browse files

nsimage: setXBMColor must return value

(compiler error)
  • Loading branch information...
1 parent 6125ab8 commit 35e07027e4f7b6ab166ad845b9205e35506a4693 @davidswelt committed Sep 28, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/nsimage.m
View
@@ -433,7 +433,7 @@ - (void)dealloc
NSColor *rgbColor;
if (bmRep == nil || color == nil)
- return;
+ return self;
if ([color colorSpaceName] != NSCalibratedRGBColorSpace)
rgbColor = [color colorUsingColorSpaceName: NSCalibratedRGBColorSpace];
@@ -458,6 +458,7 @@ - (void)dealloc
planes[2][i] = bb;
}
}
+ return self;
}

0 comments on commit 35e0702

Please sign in to comment.