Commit 8fdeaad5 authored by Jan Djärv's avatar Jan Djärv
Browse files

* nsfont.m (ns_spec_to_descriptor): Retain and autorelease fdesc.

Fixes: debbugs:14375
parent 469bfed9
2013-05-14 Jan Djärv <>
* nsfont.m (ns_spec_to_descriptor): Retain and autorelease
fdesc (Bug#14375).
2013-05-12 Paul Eggert <>
* image.c (gif_load): Check that subimages fit (Bug#14345).
......@@ -151,10 +151,13 @@ static void ns_glyph_metrics (struct nsfont_info *font_info,
if ([tdict count] > 0)
[fdAttrs setObject: tdict forKey: NSFontTraitsAttribute];
fdesc = [NSFontDescriptor fontDescriptorWithFontAttributes: fdAttrs];
fdesc = [[[NSFontDescriptor fontDescriptorWithFontAttributes: fdAttrs]
retain] autorelease];
if (family != nil)
fdesc = [fdesc fontDescriptorWithFamily: family];
NSFontDescriptor *fdesc2 = [fdesc fontDescriptorWithFamily: family];
fdesc = [[fdesc2 retain] autorelease];
[fdAttrs release];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment