diff options
Diffstat (limited to 'src/roff/troff/node.cpp')
-rw-r--r-- | src/roff/troff/node.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index afe49985..58cf59a8 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -1811,6 +1811,14 @@ void suppress_output_file::really_transparent_char(unsigned char) { } +inline node::~node() +{ + if (state != 0) + delete state; + if (push_state != 0) + delete push_state; +} + /* glyphs, ligatures, kerns, discretionary breaks */ class charinfo_node : public node { @@ -4643,7 +4651,7 @@ void hline_node::tprint(troff_output_file *out) } else { hunits rem = x - w*i; - if (rem > H0) + if (rem > H0) { if (n->overlaps_horizontally()) { if (out->is_on()) n->tprint(out); @@ -4651,6 +4659,7 @@ void hline_node::tprint(troff_output_file *out) } else out->right(rem); + } while (--i >= 0) if (out->is_on()) n->tprint(out); |