# HG changeset patch # User Aidan Kehoe # Date 1230667274 0 # Node ID b0d2ace4aed140960eda2798889176526a6d4f8e # Parent ab9e8f0fb295d0d0a41062759eff5d77be652c64 Call XFreeFontPath appropriately in #'x-get-font-path. src/ChangeLog addition: 2008-12-30 Aidan Kehoe * device-x.c (Fx_get_font_path): Free the font path once we're finished with it. diff -r ab9e8f0fb295 -r b0d2ace4aed1 src/ChangeLog --- a/src/ChangeLog Tue Dec 30 16:09:59 2008 +0000 +++ b/src/ChangeLog Tue Dec 30 20:01:14 2008 +0000 @@ -1,3 +1,8 @@ +2008-12-30 Aidan Kehoe + + * device-x.c (Fx_get_font_path): + Free the font path once we're finished with it. + 2008-12-27 Aidan Kehoe * doc.c (Fbuilt_in_symbol_file): diff -r ab9e8f0fb295 -r b0d2ace4aed1 src/device-x.c --- a/src/device-x.c Tue Dec 30 16:09:59 2008 +0000 +++ b/src/device-x.c Tue Dec 30 20:01:14 2008 +0000 @@ -2060,6 +2060,8 @@ Qfile_name), font_path); + XFreeFontPath ((char **)directories); + return font_path; }