mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Move unref of input Buffer to C++ #138
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user