in Image.lua
-- Description:
function Image:info()
-- Get information
local str = ffi.gc(clib.MagickDescribeImage(self.wand), ffi.C.free)
return ffi.string(str)
end
clib.MagickDescribeImage(self.wand) returns const char * and it can't be freed by ffi.C.free
get err: cannot convert 'const char ' to 'void '
see here MagickDescribeImage()
clib.MagickDescribeImage(self.wand) returns const char * and it can't be freed by ffi.C.free get err: cannot convert 'const char ' to 'void ' see here MagickDescribeImage()