mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Match g_malloc/g_free for make benefit glorious nation of Windows
Remove C++ standard lib from Windows packaging
This commit is contained in:
@@ -133,7 +133,7 @@ class MetadataWorker : public AsyncWorker {
|
||||
size_t exifLength;
|
||||
if (!vips_image_get_blob(image, VIPS_META_EXIF_NAME, &exif, &exifLength)) {
|
||||
baton->exifLength = exifLength;
|
||||
baton->exif = static_cast<char*>(malloc(exifLength));
|
||||
baton->exif = static_cast<char*>(g_malloc(exifLength));
|
||||
memcpy(baton->exif, exif, exifLength);
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,7 @@ class MetadataWorker : public AsyncWorker {
|
||||
size_t iccLength;
|
||||
if (!vips_image_get_blob(image, VIPS_META_ICC_NAME, &icc, &iccLength)) {
|
||||
baton->iccLength = iccLength;
|
||||
baton->icc = static_cast<char*>(malloc(iccLength));
|
||||
baton->icc = static_cast<char*>(g_malloc(iccLength));
|
||||
memcpy(baton->icc, icc, iccLength);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user