summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font/writeenc.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/writeenc.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writeenc.w3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writeenc.w b/Build/source/texk/web2c/luatexdir/font/writeenc.w
index a6e4ebaaeac..1a7ed3891af 100644
--- a/Build/source/texk/web2c/luatexdir/font/writeenc.w
+++ b/Build/source/texk/web2c/luatexdir/font/writeenc.w
@@ -149,7 +149,8 @@ static void destroy_fe_entry(void *pa, void *pb)
if (p->glyph_names[i] != notdef)
xfree(p->glyph_names[i]);
xfree(p->glyph_names);
- avl_destroy(p->tx_tree,NULL);
+ if (p->tx_tree != NULL)
+ avl_destroy(p->tx_tree,NULL);
xfree(p);
}