[cache] Use FT_DUP to duplicate data.

* src/cache/ftcsbits.c (ftc_sbit_copy_bitmap): Use concise FT_MEM_DUP.
This commit is contained in:
Alexei Podtelezhnikov 2024-05-19 22:54:57 -04:00
parent d7cf931ac6
commit 026fd5d4f0

View File

@ -53,8 +53,7 @@
size = (FT_ULong)pitch * bitmap->rows;
if ( !FT_QALLOC( sbit->buffer, size ) )
FT_MEM_COPY( sbit->buffer, bitmap->buffer, size );
FT_MEM_DUP( sbit->buffer, bitmap->buffer, size );
return error;
}