summaryrefslogtreecommitdiff
path: root/apps/mudraw.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-14 13:48:51 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-14 13:51:55 +0100
commit0eafbf0701d9d3676d6373e35801591b115943b0 (patch)
treea5f91e59afc6ca2ec27fc5c55779d004126cdfe0 /apps/mudraw.c
parentdcd46be075472a8899429416f9484d246929600b (diff)
downloadmupdf-0eafbf0701d9d3676d6373e35801591b115943b0.tar.xz
Fix memory leaks in style sheet handling of the new text device.
Diffstat (limited to 'apps/mudraw.c')
-rw-r--r--apps/mudraw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c
index 29517873..a0abc022 100644
--- a/apps/mudraw.c
+++ b/apps/mudraw.c
@@ -530,6 +530,9 @@ int main(int argc, char **argv)
printf("</style>\n");
}
+ if (showtext)
+ fz_free_text_sheet(ctx, sheet);
+
if (showtime)
{
printf("total %dms / %d pages for an average of %dms\n",