mysterioustrousers / MTPDF

Objective-C PDF objects. Doing my part to help us stay out of the headache that is Core Foundation.
MIT License
205 stars 28 forks source link

Memory Management Tweaks #7

Closed Vortec4800 closed 9 years ago

Vortec4800 commented 9 years ago

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.

atomkirk commented 9 years ago

Cool. great find.