mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-22 15:00:10 +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>
|
||||
|
||||
* src/cairo-gstate.c: (_cairo_operator_bounded): Add a return
|
||||
|
|
|
|||
|
|
@ -2073,8 +2073,9 @@ _xlib_glyphset_cache_destroy_entry (void *abstract_cache,
|
|||
glyphset_cache_entry_t *entry = abstract_entry;
|
||||
|
||||
_cairo_unscaled_font_destroy (entry->key.unscaled);
|
||||
XRenderFreeGlyphs (cache->display, entry->glyphset,
|
||||
&(entry->glyph), 1);
|
||||
if (entry->glyph)
|
||||
XRenderFreeGlyphs (cache->display, entry->glyphset,
|
||||
&(entry->glyph), 1);
|
||||
free (entry);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue