LearnBoost/node-canvas — pull request #238 by c-spencer (2012-12-19 09:39:51+00:00)
Title: Call cairo_surface_finish in ~Canvas when pdf

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.