diff --git a/Xext/render/glyph.c b/Xext/render/glyph.c index 5a9aedabf3..49297be439 100644 --- a/Xext/render/glyph.c +++ b/Xext/render/glyph.c @@ -266,7 +266,7 @@ FreeGlyph(GlyphPtr glyph, int format) gr = FindGlyphRef(&globalGlyphs[format], signature, TRUE, glyph->sha1); if (gr - globalGlyphs[format].table != first) DuplicateRef(glyph, "Found wrong one"); - if (gr && gr->glyph && gr->glyph != DeletedGlyph) { + if (gr && gr->glyph == glyph) { gr->glyph = DeletedGlyph; gr->signature = 0; globalGlyphs[format].tableEntries--;