changeset 23190:631dad12568b

Always deallocate glyphs. Fixes memory leak.
author eugeni
date Wed, 02 May 2007 10:15:12 +0000
parents 9eeca842d5b1
children 77f3ba1de7fa
files libass/ass_render.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Wed May 02 07:02:16 2007 +0000
+++ b/libass/ass_render.c	Wed May 02 10:15:12 2007 +0000
@@ -1307,12 +1307,12 @@
 			hash_val.bm_s = info->bm_s;
 			cache_add_bitmap(&(info->hash_key), &hash_val);
 		}
-		// deallocate glyphs
-		if (info->glyph)
-			FT_Done_Glyph(info->glyph);
-		if (info->outline_glyph)
-			FT_Done_Glyph(info->outline_glyph);
 	}
+	// deallocate glyphs
+	if (info->glyph)
+		FT_Done_Glyph(info->glyph);
+	if (info->outline_glyph)
+		FT_Done_Glyph(info->outline_glyph);
 }
 
 /**