Don't free the glyph if the entry doesn't have a glyph. (Maybe #3909, Carlos Garnacho Parro)

This commit is contained in:
Owen Taylor 2005-08-08 14:27:01 +00:00
parent 69f140b654
commit d51a35543c
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-08-08 Owen Taylor <otaylor@redhat.com>
* src/cairo-xlib-surface.c (_xlib_glyphset_cache_destroy_entry):
Don't free the glyph if the entry doesn't have a glyph.
(Maybe #3909, Carlos Garnacho Parro)
2005-08-08 Carl Worth <cworth@cworth.org>
* src/cairo-gstate.c: (_cairo_operator_bounded): Add a return

View file

@ -2073,6 +2073,7 @@ _xlib_glyphset_cache_destroy_entry (void *abstract_cache,
glyphset_cache_entry_t *entry = abstract_entry;
_cairo_unscaled_font_destroy (entry->key.unscaled);
if (entry->glyph)
XRenderFreeGlyphs (cache->display, entry->glyphset,
&(entry->glyph), 1);
free (entry);