[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:
parent
d7cf931ac6
commit
026fd5d4f0
|
@ -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…
Reference in New Issue