summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf/cmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ttfdump/libttf/cmap.c')
-rw-r--r--Build/source/texk/ttfdump/libttf/cmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/ttfdump/libttf/cmap.c b/Build/source/texk/ttfdump/libttf/cmap.c
index 1d1a68fb530..e75b0adfb60 100644
--- a/Build/source/texk/ttfdump/libttf/cmap.c
+++ b/Build/source/texk/ttfdump/libttf/cmap.c
@@ -225,6 +225,9 @@ void ttfFreeCMAP(CMAPPtr cmap)
{
USHORT i;
+ if (!cmap)
+ return;
+
free(cmap->encoding);
for (i = 0; i < cmap->numberOfMaps; i++)