summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 17:49:43 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 17:52:05 -0300
commitfed91b8b2e8d4de93d001025fa83f6b8d7c51e49 (patch)
treee8483b969126f961923e264d1bcff2b623756de2 /gfx
parent4003ac990ea31e7192f4679a6902cdf568eb58eb (diff)
downloadeeshow-fed91b8b2e8d4de93d001025fa83f6b8d7c51e49.tar.gz
eeshow-fed91b8b2e8d4de93d001025fa83f6b8d7c51e49.tar.bz2
eeshow-fed91b8b2e8d4de93d001025fa83f6b8d7c51e49.zip
fix a few trivial memory leaks; eeshow ... -- pdf now passes
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c3
-rw-r--r--gfx/pdftoc.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 32734d2..866eb0c 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -690,6 +690,9 @@ static int cr_pdf_end(void *ctx)
if (cc->toc)
pdftoc_end(cc->toc);
+ free(cc->sheets);
+ free(cc);
+
return 0;
}
diff --git a/gfx/pdftoc.c b/gfx/pdftoc.c
index 1e6242a..916ad35 100644
--- a/gfx/pdftoc.c
+++ b/gfx/pdftoc.c
@@ -346,5 +346,6 @@ void pdftoc_end(struct pdftoc *ctx)
ctx->titles = next;
}
free(ctx->buf);
+ free(ctx->objs);
free(ctx);
}