openbsd-ports/textproc/groff/patches/patch-troff_node_cc

21 lines
616 B
Plaintext

$OpenBSD: patch-troff_node_cc,v 1.1 2010/05/22 10:39:24 espie Exp $
--- troff/node.cc.orig Mon Dec 8 22:59:23 2003
+++ troff/node.cc Sat May 22 12:33:38 2010
@@ -168,6 +168,7 @@ class tfont : public tfont_spec { (public)
hunits get_subscript_correction(charinfo *);
friend tfont *make_tfont(tfont_spec &);
};
+tfont *make_tfont(tfont_spec &);
inline int env_definite_font(environment *env)
{
@@ -1491,7 +1492,7 @@ void glyph_node::operator delete(void *p)
void ligature_node::operator delete(void *p)
{
- delete p;
+ delete[] (char *)p;
}
glyph_node::glyph_node(charinfo *c, tfont *t, node *x)