Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 266057 Details for
Bug 355647
sys-apps/groff-1.20.1-r3 uclibc/ppc/hardened - div.cpp:(.gnu.linkonce.t._ZN15extra_size_nodeD1Ev+0x3c): undefined reference to `node::~node()'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Modified version of groff-1.20.1-Thtml-mem-leak.patch that works with gcc-3.4.6
groff-1.20.1-Thtml-mem-leak.patch (text/plain), 1.93 KB, created by
Mark Wagner
on 2011-03-15 23:04:29 UTC
(
hide
)
Description:
Modified version of groff-1.20.1-Thtml-mem-leak.patch that works with gcc-3.4.6
Filename:
MIME Type:
Creator:
Mark Wagner
Created:
2011-03-15 23:04:29 UTC
Size:
1.93 KB
patch
obsolete
>http://bugs.gentoo.org/294045 > >From f68481cd98e1d8451dd16d6d1b1b3513110a5559 Mon Sep 17 00:00:00 2001 >From: wl <wl> >Date: Fri, 10 Apr 2009 18:13:29 +0000 >Subject: [PATCH] Fix a memory leak in troff for -Thtml. > Reported by Urs Eggli <Urs.Eggli@zuerich.ch>. > >* src/roff/troff/node.h (node::~node): Move to... >* src/roff/troff/node.cpp: Here. Free `state' and `push_state'. >--- > ChangeLog | 8 ++++++++ > src/roff/troff/node.cpp | 11 ++++++++++- > src/roff/troff/node.h | 4 ---- > 3 files changed, 18 insertions(+), 5 deletions(-) > >diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp >index afe4998..58cf59a 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) > { > } > >+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); >diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h >index a598ae5..9850be2 100644 >--- a/src/roff/troff/node.h >+++ b/src/roff/troff/node.h >@@ -132,10 +132,6 @@ inline node::node(node *n, statem *s, int divlevel) > state = 0; > } > >-inline node::~node() >-{ >-} >- > // 0 means it doesn't, 1 means it does, 2 means it's transparent > > int node_list_ends_sentence(node *); >-- >1.7.1.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 355647
:
263113
| 266057