Move unref of input Buffer to C++ #138

This commit is contained in:
Lovell Fuller
2014-12-14 10:31:25 +00:00
parent 47241db789
commit f026a835fd
2 changed files with 7 additions and 7 deletions

View File

@@ -841,6 +841,7 @@ NAN_METHOD(resize) {
baton->bufferInLength = node::Buffer::Length(buffer);
baton->bufferIn = g_malloc(baton->bufferInLength);
memcpy(baton->bufferIn, node::Buffer::Data(buffer), baton->bufferInLength);
options->Set(NanNew<String>("bufferIn"), NanNull());
}
// ICC profile to use when input CMYK image has no embedded profile
baton->iccProfilePath = *String::Utf8Value(options->Get(NanNew<String>("iccProfilePath"))->ToString());