Xv frees the attribute names for each X server generation; reset the server twice without allocating them again and you get malloc complaints (or worse).
Signed-off-by: Keith Packard <[email protected]> --- hw/kdrive/src/kxv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/kdrive/src/kxv.c b/hw/kdrive/src/kxv.c index 6f3d85e..f5b1e8a 100644 --- a/hw/kdrive/src/kxv.c +++ b/hw/kdrive/src/kxv.c @@ -371,6 +371,7 @@ KdXVInitAdaptors(ScreenPtr pScreen, KdVideoAdaptorPtr * infoPtr, int number) for (pat = pAttribute, attributePtr = adaptorPtr->pAttributes, i = 0; i < adaptorPtr->nAttributes; pat++, i++, attributePtr++) { memcpy(pat, attributePtr, sizeof(*pat)); + pat->name = strdup(pAttribute->name); } pa->nAttributes = adaptorPtr->nAttributes; pa->pAttributes = pAttribute; -- 1.9.0 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
