summaryrefslogtreecommitdiff
path: root/winrt
diff options
context:
space:
mode:
Diffstat (limited to 'winrt')
-rw-r--r--winrt/mupdfwinrt/muctx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/winrt/mupdfwinrt/muctx.cpp b/winrt/mupdfwinrt/muctx.cpp
index 5db701aa..11fd77b3 100644
--- a/winrt/mupdfwinrt/muctx.cpp
+++ b/winrt/mupdfwinrt/muctx.cpp
@@ -421,6 +421,8 @@ fz_display_list * muctx::CreateDisplayList(int page_num)
/* Apparently not, lets go ahead and create and add to cache */
fz_var(dev);
fz_var(page);
+ fz_var(dlist);
+
fz_try(ctx_clone)
{
page = fz_load_page(mu_doc, page_num);
@@ -439,6 +441,7 @@ fz_display_list * muctx::CreateDisplayList(int page_num)
}
fz_catch(ctx_clone)
{
+ fz_drop_display_list(ctx_clone, dlist);
fz_free_context(ctx_clone);
return NULL;
}
@@ -466,6 +469,7 @@ status_t muctx::RenderPage(int page_num, int width, int height,
fz_var(dev);
fz_var(pix);
fz_var(page);
+ fz_var(dlist);
fz_try(ctx_clone)
{