Call cairo_surface_finish in ~Canvas when pdf #238

Merged
merged 1 commit into from Dec 19, 2012

Conversation

Projects
None yet
2 participants
Contributor

c-spencer commented Dec 19, 2012

Fixes an issue where when a pdf surface isn't buffered and then is garbage collected, toBuffer can be called and attempt to realloc the already destroyed closure. cairo_surface_finish ensures that all data from the pdf has been flushed.

@c-spencer c-spencer Call cairo_surface_finish in ~Canvas when pdf
Fixes an issue where when a pdf surface isn't buffered and then is
garbage collected, the toBuffer can be called and attempt to realloc
the destroyed closure.
cfc6dfd

tj merged commit 900d61f into Automattic:master Dec 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment