Change-Id: Id85dbf8a2ea8994d9fca07d3f10b43f62ec305a0
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
// layout of the primary display
NSDictionary *d = (NSDictionary *) IODisplayCreateInfoDictionary(iodisplay, kIODisplayOnlyPreferredName);
uint displaySubpixelLayout = [[d objectForKey:@kDisplaySubPixelLayout] unsignedIntValue];
+ [d release];
font_smoothing = (displaySubpixelLayout == kDisplaySubPixelLayoutUndefined ? 0 : 1);
[pool release];
NSLog(@"Unable to register font: %@", error);
CFRelease(error);
}
+ CGFontRelease(cgFont);
}
} else {
CFErrorRef error;
}
CGContextRelease(ctx);
+ CGColorSpaceRelease(colorspace);
return im;
}