mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 14:50:28 +01:00
script: Manually unlink font entries upon destruction
As the device is already finished, we can not lock it without raising an error, so we have to open code the destruction of the font entries. Fortunately we can make several simplifying assumptions about the required cleanup as we know the device is also being destroyed.
This commit is contained in:
parent
cccf6753ab
commit
83d1bd9f37
1 changed files with 3 additions and 1 deletions
|
|
@ -1772,7 +1772,9 @@ _device_destroy (void *abstract_device)
|
|||
cairo_script_surface_font_private_t,
|
||||
link);
|
||||
cairo_list_del (&font->link);
|
||||
_cairo_script_surface_scaled_font_fini (font->parent);
|
||||
if (font->parent->surface_private == font)
|
||||
font->parent->surface_private = NULL;
|
||||
free (font);
|
||||
}
|
||||
|
||||
while (! cairo_list_is_empty (&ctx->defines)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue