mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-22 18:30:12 +01:00
Don't free the glyph if the entry doesn't have a glyph. (Maybe #3909, Carlos Garnacho Parro)
This commit is contained in:
parent
69f140b654
commit
d51a35543c
2 changed files with 9 additions and 2 deletions
|
|
@ -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>
|
2005-08-08 Carl Worth <cworth@cworth.org>
|
||||||
|
|
||||||
* src/cairo-gstate.c: (_cairo_operator_bounded): Add a return
|
* src/cairo-gstate.c: (_cairo_operator_bounded): Add a return
|
||||||
|
|
|
||||||
|
|
@ -2073,6 +2073,7 @@ _xlib_glyphset_cache_destroy_entry (void *abstract_cache,
|
||||||
glyphset_cache_entry_t *entry = abstract_entry;
|
glyphset_cache_entry_t *entry = abstract_entry;
|
||||||
|
|
||||||
_cairo_unscaled_font_destroy (entry->key.unscaled);
|
_cairo_unscaled_font_destroy (entry->key.unscaled);
|
||||||
|
if (entry->glyph)
|
||||||
XRenderFreeGlyphs (cache->display, entry->glyphset,
|
XRenderFreeGlyphs (cache->display, entry->glyphset,
|
||||||
&(entry->glyph), 1);
|
&(entry->glyph), 1);
|
||||||
free (entry);
|
free (entry);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue