From 36cb0c6eaa0237baec7e834f0da6e94ec1153beb Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Wed, 22 Jul 2009 03:24:42 +0200 Subject: Fix rasterizer error handling (double free) In case rasterizing a glyph is successful, but rasterizing its outline is not, do not free the glyph bitmap. It will be freed in cache cleanup later. Freeing it earlier leads to a double free. --- libass/ass_bitmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 3642be8..3bd7c7e 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -496,7 +496,6 @@ int glyph_to_bitmap(ass_library_t *library, ass_synth_priv_t *priv_blur, if (outline_glyph) { *bm_o = glyph_to_bitmap_internal(library, outline_glyph, bord); if (!*bm_o) { - ass_free_bitmap(*bm_g); return 1; } } -- cgit v1.2.3