Fixed a memory leak in xlhtml.c

This commit is contained in:
slidedraw
2002-04-04 17:56:04 +00:00
parent 89c4cdb2d7
commit 578f23c51b
3 changed files with 7 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ man_MANS = xlhtml.1
bin_SCRIPTS = nsopen nsxlview
bin_PROGRAMS = xlhtml
LDADD = ../cole/libcole.a
xlhtml_SOURCES = support.c xlhtml.c
xlhtml_SOURCES = support.c xlhtml.c memwatch.c
xldump_SOURCES = xldump.c
xlcdump_SOURCES = xlcdump.c
AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith
@@ -97,7 +97,7 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
xlhtml_OBJECTS = support.o xlhtml.o
xlhtml_OBJECTS = support.o xlhtml.o memwatch.o
xlhtml_LDADD = $(LDADD)
xlhtml_DEPENDENCIES = ../cole/libcole.a
xlhtml_LDFLAGS =

View File

@@ -27,7 +27,6 @@
#include "tuneable.h"
#include "xlhtml.h"
static char SectionName[2][12] = /* The section of the Excel Stream where the workbooks are kept */
{
"/Workbook", /*!< Excel 97 & 2000 */
@@ -539,9 +538,7 @@ int main (int argc, char **argv)
exit(1);
}
/* For some reason, this loop core dumps on some */
/* files from Central Europe...so it's commented out for now */
/* for (i=0; i<max_strings; i++)
for (i=0; i<max_strings; i++)
{
if (str_array[i])
{
@@ -549,7 +546,7 @@ int main (int argc, char **argv)
free(str_array[i]->str);
free(str_array[i]);
}
} */
}
for (i=0; i<(int)max_fonts; i++)
{