[cache] Use FT_DUP to duplicate data.

* src/cache/ftcsbits.c (ftc_sbit_copy_bitmap): Use concise FT_MEM_DUP.
adjust
Alexei Podtelezhnikov 8 months ago
parent d7cf931ac6
commit 026fd5d4f0
  1. 3
      src/cache/ftcsbits.c

@ -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;
}

Loading…
Cancel
Save