Mercurial > hg > xemacs-beta
comparison src/font-mgr.c @ 4799:ca99a807b025
Free, rather than discard, the return value of FcNameUnparse. See message
<870180fe1001051404g11355acdp3ee9aab8b1ffb33b@mail.gmail.com> on xemacs-patches.
author | Jerry James <james@xemacs.org> |
---|---|
date | Tue, 05 Jan 2010 15:06:02 -0700 |
parents | 75975fd0b7fc |
children | 0d3ccd5a2509 |
comparison
equal
deleted
inserted
replaced
4798:ea7a6c12df45 | 4799:ca99a807b025 |
---|---|
258 DEFUN("fc-name-unparse", Ffc_name_unparse, 1, 1, 0, /* | 258 DEFUN("fc-name-unparse", Ffc_name_unparse, 1, 1, 0, /* |
259 Unparse an fc pattern object to a string. | 259 Unparse an fc pattern object to a string. |
260 */ | 260 */ |
261 (pattern)) | 261 (pattern)) |
262 { | 262 { |
263 FcChar8 *name; | |
264 Lisp_Object result; | |
263 CHECK_FCPATTERN(pattern); | 265 CHECK_FCPATTERN(pattern); |
264 return build_fcapi_string (FcNameUnparse (XFCPATTERN_PTR (pattern))); | 266 name = FcNameUnparse (XFCPATTERN_PTR (pattern)); |
267 result = build_fcapi_string (name); | |
268 xfree (name, FcChar8 *); | |
269 return result; | |
265 } | 270 } |
266 | 271 |
267 DEFUN("fc-pattern-duplicate", Ffc_pattern_duplicate, 1, 1, 0, /* | 272 DEFUN("fc-pattern-duplicate", Ffc_pattern_duplicate, 1, 1, 0, /* |
268 Make a copy of the fc pattern object PATTERN and return it. | 273 Make a copy of the fc pattern object PATTERN and return it. |
269 */ | 274 */ |