diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2013-11-22 13:12:40 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2013-11-22 13:12:40 +0000 |
commit | 1a10116e24a1cd09db871c0c92a828e3adc75103 (patch) | |
tree | 925ae598bc73f594efd2aad8d45f757e2b4a835c /platform/ios/Classes/MuPageViewNormal.m | |
parent | 6fc675335c3403887d641cc2e7ecb35a8464dd65 (diff) | |
download | mupdf-1a10116e24a1cd09db871c0c92a828e3adc75103.tar.xz |
iOS; remove use of deprecated functions and fix other warnings
Diffstat (limited to 'platform/ios/Classes/MuPageViewNormal.m')
-rw-r--r-- | platform/ios/Classes/MuPageViewNormal.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m index b01360fe..c2f609c9 100644 --- a/platform/ios/Classes/MuPageViewNormal.m +++ b/platform/ios/Classes/MuPageViewNormal.m @@ -680,7 +680,7 @@ static void updatePixmap(fz_document *doc, fz_display_list *page_list, fz_displa // dealloc can trigger in background thread when the queued block is // our last owner, and releases us on completion. // Send the dealloc back to the main thread so we don't mess up UIKit. - if (dispatch_get_current_queue() != dispatch_get_main_queue()) { + if (![NSThread isMainThread]) { __block id block_self = self; // don't auto-retain self! dispatch_async(dispatch_get_main_queue(), ^{ [block_self dealloc]; }); } else { |