diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-06-26 14:16:27 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-06-26 16:53:36 +0100 |
commit | ada560eb015e7b2208c492d47f28da8093733c4a (patch) | |
tree | 00f8a4739292098fe27db5e7bc6e272d90394730 /platform/ios/Classes | |
parent | 526ab461bd85cce92d866ee5c4245a6c3636082c (diff) | |
download | mupdf-ada560eb015e7b2208c492d47f28da8093733c4a.tar.xz |
Add missing fz_var() and fix potential memory leak.
Diffstat (limited to 'platform/ios/Classes')
-rw-r--r-- | platform/ios/Classes/MuPageViewNormal.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index a339df45..eacd611b 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -320,6 +320,8 @@ static int setFocussedWidgetText(fz_document *doc, fz_page *page, const char *te { int accepted = 0; + fz_var(accepted); + fz_try(ctx) { pdf_document *idoc = pdf_specifics(doc); @@ -344,6 +346,8 @@ static int setFocussedWidgetChoice(fz_document *doc, fz_page *page, const char * { int accepted = 0; + fz_var(accepted); + fz_try(ctx) { pdf_document *idoc = pdf_specifics(doc); |