summaryrefslogtreecommitdiff
path: root/platform/x11/pdfapp.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/pdfapp.c')
-rw-r--r--platform/x11/pdfapp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index f011b5b0..1c5ae45d 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1680,8 +1680,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
{
int nopts;
int nvals;
- char **opts = NULL;
- char **vals = NULL;
+ const char **opts = NULL;
+ const char **vals = NULL;
fz_var(opts);
fz_var(vals);
@@ -1706,12 +1706,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
}
fz_always(ctx)
{
- int i;
- for (i=0; i < nopts; ++i)
- fz_free(ctx, opts[i]);
fz_free(ctx, opts);
- for (i=0; i < nvals; ++i)
- fz_free(ctx, vals[i]);
fz_free(ctx, vals);
}
fz_catch(ctx)