mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 01:50:24 +01:00
Merge branch 'gstate-font-options' into 'master'
[gstate] Fix cairo_font_options_t memory management See merge request cairo/cairo!414
This commit is contained in:
commit
7b1de369dd
1 changed files with 3 additions and 1 deletions
|
|
@ -1753,6 +1753,7 @@ _cairo_gstate_set_font_options (cairo_gstate_t *gstate,
|
|||
|
||||
_cairo_gstate_unset_scaled_font (gstate);
|
||||
|
||||
_cairo_font_options_fini (&gstate->font_options);
|
||||
_cairo_font_options_init_copy (&gstate->font_options, options);
|
||||
}
|
||||
|
||||
|
|
@ -1760,7 +1761,8 @@ void
|
|||
_cairo_gstate_get_font_options (cairo_gstate_t *gstate,
|
||||
cairo_font_options_t *options)
|
||||
{
|
||||
*options = gstate->font_options;
|
||||
_cairo_font_options_fini (options);
|
||||
_cairo_font_options_init_copy (options, &gstate->font_options);
|
||||
}
|
||||
|
||||
cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue