summaryrefslogtreecommitdiff
path: root/platform/x11/win_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/win_main.c')
-rw-r--r--platform/x11/win_main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c
index 32121f5f..444e8d67 100644
--- a/platform/x11/win_main.c
+++ b/platform/x11/win_main.c
@@ -650,8 +650,10 @@ void winopen()
static void
do_close(pdfapp_t *app)
{
+ fz_context *ctx = app->ctx;
pdfapp_close(app);
free(dibinf);
+ fz_drop_context(ctx);
}
void winclose(pdfapp_t *app)
@@ -881,12 +883,6 @@ void windocopy(pdfapp_t *app)
justcopied = 1; /* keep inversion around for a while... */
}
-void winreloadfile(pdfapp_t *app)
-{
- pdfapp_close(app);
- pdfapp_open(app, filename, 1);
-}
-
void winreloadpage(pdfapp_t *app)
{
SendMessage(hwndview, WM_APP, 0, 0);
@@ -1229,7 +1225,6 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow
}
do_close(&gapp);
- fz_drop_context(ctx);
return 0;
}