Match g_malloc/g_free for make benefit glorious nation of Windows

Remove C++ standard lib from Windows packaging
This commit is contained in:
Lovell Fuller
2015-11-21 22:51:32 +00:00
parent 0ae619dfc5
commit 3dbedf1fb6
4 changed files with 4 additions and 5 deletions

View File

@@ -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);
}
}