From 5858b47d668a1b3785abca625f4d895e10234dc2 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 8 Nov 2010 18:16:03 -0800 Subject: [PATCH] locals --- src/Canvas.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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