summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/vega/text.c')
-rw-r--r--src/gallium/state_trackers/vega/text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/text.c b/src/gallium/state_trackers/vega/text.c
index 27d461ce660..14e3cc57551 100644
--- a/src/gallium/state_trackers/vega/text.c
+++ b/src/gallium/state_trackers/vega/text.c
@@ -52,8 +52,7 @@ static VGboolean del_glyph(struct vg_font *font,
glyph = (struct vg_glyph *)
cso_hash_take(font->glyphs, (unsigned) glyphIndex);
- if (glyph)
- FREE(glyph);
+ FREE(glyph);
return (glyph != NULL);
}