From 32083be82b7b533fa85c36ae5ccacea94857fafa Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 9 Aug 2010 03:28:29 +0200 Subject: Get rid of NULL checks for free The useless "if (foo) free(foo)" idiom is all over the place, just get rid of it finally... --- libass/ass_font.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libass/ass_font.c') diff --git a/libass/ass_font.c b/libass/ass_font.c index 1c0535f..0b061bf 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -562,8 +562,7 @@ void ass_font_free(ASS_Font *font) for (i = 0; i < font->n_faces; ++i) if (font->faces[i]) FT_Done_Face(font->faces[i]); - if (font->desc.family) - free(font->desc.family); + free(font->desc.family); free(font); } -- cgit v1.2.3