changeset 4548:b0d2ace4aed1

Call XFreeFontPath appropriately in #'x-get-font-path. src/ChangeLog addition: 2008-12-30 Aidan Kehoe <kehoea@parhasard.net> * device-x.c (Fx_get_font_path): Free the font path once we're finished with it.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 30 Dec 2008 20:01:14 +0000
parents ab9e8f0fb295
children ebc01476e352
files src/ChangeLog src/device-x.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <kehoea@parhasard.net>
+
+	* device-x.c (Fx_get_font_path): 
+	Free the font path once we're finished with it. 
+
 2008-12-27  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* doc.c (Fbuilt_in_symbol_file): 
--- 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;
 }