On Sat, 2017-11-04 at 23:06 +0100, Giuseppe Bilotta wrote: > Signed-off-by: Giuseppe Bilotta <giuseppe.bilo...@gmail.com> > --- > randr/rrcrtc.c | 6 ++++++ > randr/rroutput.c | 5 +++++ > 2 files changed, 11 insertions(+) > > diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c > index 2eb9fbdc8..90922484f 100644 > --- a/randr/rrcrtc.c > +++ b/randr/rrcrtc.c > @@ -873,6 +873,11 @@ RRCrtcDestroyResource(void *value, XID pid) > } > } > > + if (pScrPriv->numCrtcs == 0) { > + free(pScrPriv->crtcs); > + pScrPriv->crtcs = NULL; > + } > + > RRResourcesChanged(pScreen); > } >
Nack. Cleaning up the screen private belongs in CloseScreen or similar, it shouldn't be triggered from a resource destructor. - ajax _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel