diff --git a/src/Canvas.cc b/src/Canvas.cc index 77971fd..0c25e66 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -217,7 +217,7 @@ static cairo_status_t streamPNG(void *c, const uint8_t *data, unsigned len) { HandleScope scope; closure_t *closure = (closure_t *) c; - Buffer *buf = Buffer::New(len); + Local buf = Buffer::New(len); #if NODE_VERSION_AT_LEAST(0,3,0) memcpy(Buffer::Data(buf->handle_), data, len); #else