diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2013-09-24 16:56:08 +0100 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2013-09-24 16:56:08 +0100 |
commit | aa8bf97eb104986fae3245bc675bd50dded01804 (patch) | |
tree | 4c2b67e31aacf9ee508b997bc02b5bb9694e0077 /platform/ios/Classes/MuPageView.h | |
parent | 32b292944f3a99edaaf40fa00265d0276f8e0346 (diff) | |
download | mupdf-aa8bf97eb104986fae3245bc675bd50dded01804.tar.xz |
iOS: use ObjC-level ref counting to control lifetime of fz_document
With the latest version if iOS, timing changes were causing crashes
during close down of a MuDocumentController. This change isolates
us from those changes.
Diffstat (limited to 'platform/ios/Classes/MuPageView.h')
-rw-r--r-- | platform/ios/Classes/MuPageView.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuPageView.h b/platform/ios/Classes/MuPageView.h index ab141ea8..58d1c8a7 100644 --- a/platform/ios/Classes/MuPageView.h +++ b/platform/ios/Classes/MuPageView.h @@ -13,10 +13,12 @@ #include "mupdf/fitz.h" +#import "MuDocRef.h" #include "MuHitView.h" @interface MuPageView : UIScrollView <UIScrollViewDelegate> { + MuDocRef *docRef; fz_document *doc; fz_page *page; int number; @@ -30,7 +32,7 @@ float tileScale; BOOL cancel; } -- (id) initWithFrame: (CGRect)frame document: (fz_document*)aDoc page: (int)aNumber; +- (id) initWithFrame: (CGRect)frame document: (MuDocRef*)aDoc page: (int)aNumber; - (void) displayImage: (UIImage*)image; - (void) resizeImage; - (void) loadPage; |