forked from minhngoc25a/freetype2
[base] Fix memory leak (#58611).
* src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size' fails, make sure to free `size->internal'.
This commit is contained in:
parent
575b78d9e3
commit
a4429959b0
|
@ -1,3 +1,10 @@
|
|||
2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
|
||||
|
||||
[base] Fix memory leak (#58611).
|
||||
|
||||
* src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
|
||||
fails, make sure to free `size->internal'.
|
||||
|
||||
2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
|
||||
|
||||
[cff] Fix memory leak (#58610).
|
||||
|
|
|
@ -2857,6 +2857,7 @@
|
|||
if ( error )
|
||||
{
|
||||
FT_FREE( node );
|
||||
FT_FREE( size->internal );
|
||||
FT_FREE( size );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue