diff options
author | Grigori Goronzy <greg@blackbox> | 2010-08-09 03:28:29 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2010-08-09 05:58:00 +0200 |
commit | 32083be82b7b533fa85c36ae5ccacea94857fafa (patch) | |
tree | b492d25d52fe7daed512d828aabccaa1eff4352d /libass/ass_font.c | |
parent | 65d9960f24ec25cadfacd505046f9e4f2932bb12 (diff) | |
download | libass-32083be82b7b533fa85c36ae5ccacea94857fafa.tar.bz2 libass-32083be82b7b533fa85c36ae5ccacea94857fafa.tar.xz |
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...
Diffstat (limited to 'libass/ass_font.c')
-rw-r--r-- | libass/ass_font.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |