summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-07 14:31:01 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-07 14:31:01 +0000
commit308eeebcdbc6d3dfd3847f0beba27382f6468482 (patch)
tree2bd44307048532751d089ecc83a0a6498789632f /apps
parent1fab71137fb79df949ff8d4ad145f5f3d18becad (diff)
downloadmupdf-308eeebcdbc6d3dfd3847f0beba27382f6468482.tar.xz
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.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c5
1 files changed, 0 insertions, 5 deletions
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)
{