diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-08-16 08:45:28 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-08-16 08:45:28 +0100 |
commit | 92d6657adfe6be10335b87c5052b930352f54e86 (patch) | |
tree | c901112cc73afe2887fb424410a76c6c472b700b | |
parent | f8b58cc87cabb06fcc24f7b049e3bda4fc95a8e2 (diff) | |
download | ghostpdl-92d6657adfe6be10335b87c5052b930352f54e86.tar.gz |
txtwrite - initialise some structure members
These are freed when the text enumerator is released, they need to be
set to NULL so that we don't try and free uninitialised pointers if we
never received any real text.
-rw-r--r-- | devices/vector/gdevtxtw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devices/vector/gdevtxtw.c b/devices/vector/gdevtxtw.c index f103d598b..7dffb2302 100644 --- a/devices/vector/gdevtxtw.c +++ b/devices/vector/gdevtxtw.c @@ -2068,6 +2068,9 @@ txtwrite_text_begin(gx_device * dev, gs_gstate * pgs, penum->TextBuffer = NULL; penum->TextBufferIndex = 0; penum->Widths = NULL; + penum->Advs = NULL; + penum->GlyphWidths = NULL; + penum->SpanDeltaX = NULL; penum->pte_fallback = NULL; penum->d1_width = 0; penum->d1_width_set = false; |