From 308eeebcdbc6d3dfd3847f0beba27382f6468482 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 7 Dec 2011 14:31:01 +0000 Subject: Fix mismerge, causing error on closedown of mupdf.exe. At some point I'd mismerged some code for handling app->doctitle, resulting in app->doctitle pointing to something that's not a heap block. This caused an error when app->doctitle was freed at closedown. Remove the offending code and all is well. --- apps/pdfapp.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'apps') diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 57f5e8e8..7dabd93e 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -145,11 +145,6 @@ static void pdfapp_open_pdf(pdfapp_t *app, char *filename, int fd) app->outline = pdf_load_outline(app->xref); - app->doctitle = fz_strdup(ctx, filename); - if (strrchr(app->doctitle, '\\')) - app->doctitle = strrchr(app->doctitle, '\\') + 1; - if (strrchr(app->doctitle, '/')) - app->doctitle = strrchr(app->doctitle, '/') + 1; info = fz_dict_gets(app->xref->trailer, "Info"); if (info) { -- cgit v1.2.3