From 3298f01fc455741ed6ab69a0e3e15177f704c90d Mon Sep 17 00:00:00 2001 From: George Lebl Date: Sun, 18 Jun 2000 01:11:12 +0000 Subject: Use g_free on the node as it has been allocated with g_malloc Sat Jun 17 18:07:19 2000 George Lebl * gnome-info2html2/main.c (main): Use g_free on the node as it has been allocated with g_malloc * gnome-man2html2/gnome-man2html.c (scan_format): Patch from gnome bug number 3925. From the description: Briefly, gnome-man2html doesn't notice when the format lines in table declarations end if the last thing in the format specification is a font command. --- src/info2html/main.c | 2 +- src/man2html/yelp-man2html.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/info2html/main.c b/src/info2html/main.c index e6fa0a0f..bf3d17b5 100644 --- a/src/info2html/main.c +++ b/src/info2html/main.c @@ -213,7 +213,7 @@ main(int argc, char **argv) if ( node->contents ) free(node->contents); - free(node); + g_free(node); BaseFilename = NULL; } } diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c index 47993248..2db37daf 100644 --- a/src/man2html/yelp-man2html.c +++ b/src/man2html/yelp-man2html.c @@ -1054,7 +1054,7 @@ static char c++; curfield->font = toupper(*c); c++; - if (!isspace(*c)) c++; + if (!isspace(*c) && *c!='.') c++; break; case 't': case 'T': curfield->valign='t'; c++; break; case 'p': case 'P': -- cgit v1.2.1