This is based off the corresponding xserver commit from Tiago Vignatti: http://cgit.freedesktop.org/xorg/xserver/commit/mi/mispans.c?id=7ae46b69ba3f05f46529131e6a864904967cde3a Since xrealloc is #defined to spice_realloc which aborts on failure, this block is dead code, but I prefer to stay as close as possible to the upstream xserver code this is based on. --- common/lines.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lines.c b/common/lines.c index adf1479..5b26662 100644 --- a/common/lines.c +++ b/common/lines.c @@ -814,6 +814,8 @@ miFillUniqueSpanGroup (GCPtr pGC, SpanGroup * spanGroup, Boolean foreground) } xfree (yspans); xfree (ysizes); + xfree (newpoints); + xfree (newwidths); miDisposeSpanGroup (spanGroup); return; } -- 1.8.4.2 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel