diff options
author | Eugene A. Shatokhin <spectre@ispras.ru> | 2010-07-05 22:36:30 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2010-07-05 22:36:30 +0200 |
commit | b33b856a2753a1b4a23fdac658116883fd9bf7f1 (patch) | |
tree | b0360cc5ed97240b2bb04abad7649f3741e9114a /src/base | |
parent | e8770c679bdee7da80ecb727a85aafec58da7ed5 (diff) |
Fix Savannah bug #27648.
* src/base/ftobjs.c (ft_remove_renderer, FT_Add_Module): Call
`raster_done' only if we have an outline glyph format.
Fix comment typo.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/ftobjs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 85516936..7d9dc3db 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -3739,7 +3739,7 @@ /* allocate raster object if needed */ if ( clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE && - clazz->raster_class->raster_new ) + clazz->raster_class->raster_new ) { error = clazz->raster_class->raster_new( memory, &render->raster ); if ( error ) @@ -3780,7 +3780,8 @@ /* release raster object, if any */ - if ( render->raster ) + if ( render->clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE && + render->raster ) render->clazz->raster_class->raster_done( render->raster ); /* remove from list */ @@ -4107,7 +4108,8 @@ FT_Renderer renderer = FT_RENDERER( module ); - if ( renderer->raster ) + if ( renderer->clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE && + renderer->raster ) renderer->clazz->raster_class->raster_done( renderer->raster ); } |