summaryrefslogtreecommitdiff
path: root/src/nsfont.m
diff options
context:
space:
mode:
authorBen Key <bkey76@gmail.com>2011-04-15 22:14:08 -0500
committerBen Key <bkey76@gmail.com>2011-04-15 22:14:08 -0500
commit613052cdfe876e3e51b02c3fc72d04f3da63305b (patch)
tree1595a7bf088edf64491c4556264ba784d4dd3521 /src/nsfont.m
parent4a1a6b5b7d2208cf504cf38e548d3c562f6cfbb3 (diff)
downloademacs-613052cdfe876e3e51b02c3fc72d04f3da63305b.tar.gz
Fixed bugs in ns_get_family and ns_descriptor_to_entity that were caused by using free to deallocate memory blocks that were allocated by xmalloc (via xstrdup).
Diffstat (limited to 'src/nsfont.m')
-rw-r--r--src/nsfont.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsfont.m b/src/nsfont.m
index 48d40223553..76c70aadf9f 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -104,7 +104,7 @@ ns_get_family (Lisp_Object font_spec)
NSString *family;
ns_unescape_name (tmp);
family = [NSString stringWithUTF8String: tmp];
- free (tmp);
+ xfree (tmp);
return family;
}
}
@@ -217,7 +217,7 @@ ns_descriptor_to_entity (NSFontDescriptor *desc,
debug_print (font_entity);
}
- free (escapedFamily);
+ xfree (escapedFamily);
return font_entity;
}