I don't think the per-port Xv data which glamor allocates is getting freed at server reset time, so I put together a short patch sequence which does it. Seems to work for me at least.