mysterioustrousers/MTPDF — pull request #7 by Vortec4800 (2014-12-03 20:33:49+00:00)
Title: Memory Management Tweaks

Added extra defensive memory management to draw methods.

This was a rare crash, but would happen if something was still drawing in the background when the PDF file changed. The page reference would drop out from underneath and cause a BAD_ACCESS crash.

This change will just assure that whatever drawing was already running will finish successfully.