summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--gfx/cro.c3
-rw-r--r--gfx/pdftoc.c1
-rw-r--r--kicad/dwg.c1
4 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 406263a..abdbc3b 100644
--- a/Makefile
+++ b/Makefile
@@ -158,4 +158,5 @@ leak: $(NAME)
valgrind --leak-check=full --show-leak-kinds=all \
--num-callers=50 \
$(SUPP:%=--suppressions=%.supp) \
- eeshow -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
+ eeshow -N 1 $(NEO900_HW)/neo900.pro -- pdf >/dev/null
+# eeshow -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
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);
}
diff --git a/kicad/dwg.c b/kicad/dwg.c
index fc0efa2..27e84ba 100644
--- a/kicad/dwg.c
+++ b/kicad/dwg.c
@@ -268,6 +268,7 @@ void dwg_glabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
alloc_printf(&tag, "G:%s", s);
gfx_tag(gfx, tag, n, vx, vy);
+ free(tag);
}