]> git.ipfire.org Git - thirdparty/gettext.git/commit
html-ostream: Fix memory leak.
authorBruno Haible <bruno@clisp.org>
Sat, 9 Feb 2019 14:05:36 +0000 (15:05 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Feb 2019 14:05:36 +0000 (15:05 +0100)
commit5c85788f970bc9effc66835d2b91853ece4e28af
treeaebd9fd45474eea375571548227ab913c77aa024
parent5a44aa0651fc59b2cceb11f09755f8e2b5ff566b
html-ostream: Fix memory leak.

* gnulib-local/lib/html-ostream.oo.c: Include minmax.h.
(verify_invariants, shrink_class_stack): New functions.
(emit_pending_spans): Use them.
(html_ostream::write_mem): Shrink class stack during newline processing.
(html_ostream::free, html_ostream::begin_span): Verify invariants.
(html_ostream::end_span): Likewise. Shrink class stack.
* gnulib-local/modules/html-ostream (Depends-on): Add 'minmax'.
gnulib-local/lib/html-ostream.oo.c
gnulib-local/modules/html-ostream