[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:
Chris Wilson 2007-05-09 12:30:40 +01:00
parent 8ddfc1b2e4
commit dfd4d41ac9

View file

@ -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);