summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-10-05 20:49:02 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-10-05 20:49:02 +0000
commit9f0c232e474828b1552ecd430a237b28e8e57e7f (patch)
tree11223de78961eed1d125e9d1e1eb5bb056e1f43c /Build/source/texk/web2c/luatexdir/font
parenta3a26fc921f8182b70d96386e6d76ce051ed247f (diff)
web2c/luatexdir: Sync with the upstream trunk.
git-svn-id: svn://tug.org/texlive/trunk@38555 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writecff.w1
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writefont.w14
2 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writecff.w b/Build/source/texk/web2c/luatexdir/font/writecff.w
index 0a070f5bf83..d6e05bca4db 100644
--- a/Build/source/texk/web2c/luatexdir/font/writecff.w
+++ b/Build/source/texk/web2c/luatexdir/font/writecff.w
@@ -3407,6 +3407,7 @@ void write_cid_cff(PDF pdf, cff_font * cffont, fd_entry * fd)
pdf_out_block(pdf, stream, l);
pdf_end_stream(pdf);
pdf_end_obj(pdf);
+ xfree(stream);
}
}
diff --git a/Build/source/texk/web2c/luatexdir/font/writefont.w b/Build/source/texk/web2c/luatexdir/font/writefont.w
index 1846df0109e..b5eb8ae711a 100644
--- a/Build/source/texk/web2c/luatexdir/font/writefont.w
+++ b/Build/source/texk/web2c/luatexdir/font/writefont.w
@@ -957,6 +957,14 @@ static void write_cid_charwidth_array(PDF pdf, fo_entry * fo)
pdf_end_obj(pdf);
}
+static void destroy_glw_cid_entry(void *pa, void *pb)
+{
+ glw_entry *e = (glw_entry *) pa;
+ (void) pb;
+ xfree(e);
+}
+
+
static void create_cid_fontdictionary(PDF pdf, internal_font_number f)
{
fm_entry *fm = font_map(f);
@@ -980,6 +988,12 @@ static void create_cid_fontdictionary(PDF pdf, internal_font_number f)
write_fontdescriptor(pdf, fo->fd);
write_cid_fontdictionary(pdf, fo, f);
+ if (fo->fd) {
+ if (fo->fd->gl_tree){
+ avl_destroy(fo->fd->gl_tree,destroy_glw_cid_entry);
+ }
+ xfree(fo->fd);
+ }
xfree(fo);
}