make ImgIoUtilReadFile use WebPMalloc instead of malloc

This is a minor technical change in API in case a special allocator
was used in WebPMalloc.

Change-Id: Idb78a9150d006f158c1a9538525097749e42e7f7
This commit is contained in:
Pascal Massimino
2020-10-16 15:37:26 +02:00
committed by Skal
parent 8cb7e536d2
commit 906c1fcd61
6 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ FILE* ImgIoUtilSetBinaryMode(FILE* file);
// Allocates storage for entire file 'file_name' and returns contents and size
// in 'data' and 'data_size'. Returns 1 on success, 0 otherwise. '*data' should
// be deleted using free().
// be deleted using WebPFree().
// Note: for convenience, the data will be null-terminated with an extra byte
// (not accounted for in *data_size), in case the file is text and intended
// to be used as a C-string.