Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #238 from c-spencer/patch-1

Call cairo_surface_finish in ~Canvas when pdf
  • Loading branch information...
commit 900d61f738504b396b110a2d1cc743eed290dcd2 2 parents 0d39dae + cfc6dfd
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Canvas.cc
View
2  src/Canvas.cc
@@ -1,4 +1,3 @@
-
//
// Canvas.cc
//
@@ -406,6 +405,7 @@ Canvas::Canvas(int w, int h, canvas_type_t t): ObjectWrap() {
Canvas::~Canvas() {
switch (type) {
case CANVAS_TYPE_PDF:
+ cairo_surface_finish(_surface);
closure_destroy((closure_t *) _closure);
free(_closure);
cairo_surface_destroy(_surface);
Please sign in to comment.
Something went wrong with that request. Please try again.