mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 06:58:00 +02:00
Plug another memory leak
This commit is contained in:
parent
537445c4f0
commit
139f3f25b1
1 changed files with 5 additions and 0 deletions
|
|
@ -312,6 +312,7 @@ _cairo_user_scaled_glyph_init (void *abstract_font,
|
|||
_cairo_scaled_glyph_set_surface (scaled_glyph,
|
||||
&scaled_font->base,
|
||||
(cairo_image_surface_t *) surface);
|
||||
surface = NULL;
|
||||
}
|
||||
|
||||
if (scaled_glyph->recording_is_color && (info & CAIRO_SCALED_GLYPH_INFO_COLOR_SURFACE)) {
|
||||
|
|
@ -319,7 +320,11 @@ _cairo_user_scaled_glyph_init (void *abstract_font,
|
|||
&scaled_font->base,
|
||||
(cairo_image_surface_t *)surface,
|
||||
FALSE);
|
||||
surface = NULL;
|
||||
}
|
||||
|
||||
if (surface)
|
||||
cairo_surface_destroy(surface);
|
||||
}
|
||||
|
||||
if (info & CAIRO_SCALED_GLYPH_INFO_PATH) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue