Don't access freed variables...
This commit is contained in:
parent
350a1c1a9e
commit
d2ac68bddf
|
@ -815,7 +815,7 @@
|
||||||
FT_Glyph_Transform( glyph, 0, &v );
|
FT_Glyph_Transform( glyph, 0, &v );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* in case of succes, copy the bitmap to the glyph bitmap */
|
/* in case of success, copy the bitmap to the glyph bitmap */
|
||||||
if ( !error )
|
if ( !error )
|
||||||
{
|
{
|
||||||
error = ft_bitmap_glyph_init( bitmap, &dummy );
|
error = ft_bitmap_glyph_init( bitmap, &dummy );
|
||||||
|
@ -826,12 +826,12 @@
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* copy advance */
|
||||||
|
bitmap->root.advance = glyph->advance;
|
||||||
|
|
||||||
if ( destroy )
|
if ( destroy )
|
||||||
FT_Done_Glyph( glyph );
|
FT_Done_Glyph( glyph );
|
||||||
|
|
||||||
/* copy advance - thanks Karsten ;-) */
|
|
||||||
bitmap->root.advance = glyph->advance;
|
|
||||||
|
|
||||||
*the_glyph = FT_GLYPH( bitmap );
|
*the_glyph = FT_GLYPH( bitmap );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue