mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-02 00:20:34 +01:00
[cairo-xlib-surface] Free the allocation if we fail to queue the work.
Avoid the leak of the allocated argument if we fail to queue the work to free the glyph.
This commit is contained in:
parent
8ddfc1b2e4
commit
dfd4d41ac9
1 changed files with 4 additions and 1 deletions
|
|
@ -2521,7 +2521,10 @@ _cairo_xlib_surface_scaled_glyph_fini (cairo_scaled_glyph_t *scaled_glyph,
|
|||
(cairo_xlib_notify_func) _cairo_xlib_render_free_glyphs,
|
||||
arg,
|
||||
free);
|
||||
(void) status; /* XXX cannot propagate failure */
|
||||
if (status) {
|
||||
/* XXX cannot propagate failure */
|
||||
free (arg);
|
||||
}
|
||||
}
|
||||
|
||||
_cairo_xlib_display_destroy (display);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue