Skip to content

Commit

Permalink
PNG: Use sail_malloc_std_signature()
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Nov 10, 2023
1 parent 986f08f commit 36afbbd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sail-codecs/png/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,7 @@ void* png_private_my_malloc_fn(png_structp png_ptr, png_size_t size) {

(void)png_ptr;

void *ptr;

SAIL_TRY_OR_EXECUTE(sail_malloc(size, &ptr),
/* on error */ return NULL);

return ptr;
return sail_malloc_std_signature(size);
}

void png_private_my_free_fn(png_structp png_ptr, void *ptr) {
Expand Down

0 comments on commit 36afbbd

Please sign in to comment.