2019-06-03 7.0.8-49 Cristy <quetzlzacatenango@image...>
* Add support for RGB565 image format (reference
https://imagemagick.org/discourse-server/viewtopic.php?f=2&t=36078).
+ * Use user defined allocator instead of `malloc` (reference
+ https://github.com/ImageMagick/ImageMagick6/pull/49/).
2019-06-01 7.0.8-48 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.8-48, GIT revision 15689:061a3bb82:20190601
extent=(size+alignment-1)+sizeof(void *);
if (extent > size)
{
- p=malloc(extent);
+ p=AcquireMagickMemory(extent);
if (p != NULL)
{
memory=(void *) AlignedExtent((size_t) p+sizeof(void *),alignment);
#elif defined(MAGICKCORE_HAVE__ALIGNED_MALLOC)
_aligned_free(memory);
#else
- free(*((void **) memory-1));
+ RelinquishMagickMemory(*((void **) memory-1));
#endif
return(NULL);
}