randr: free crtc->outputs on destroy

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
This commit is contained in:
Giuseppe Bilotta 2017-11-09 10:21:21 +01:00 committed by Adam Jackson
parent 16381d186e
commit fc7fb5bbe1

View File

@ -878,6 +878,7 @@ RRCrtcDestroyResource(void *value, XID pid)
free(crtc->gammaRed); free(crtc->gammaRed);
if (crtc->mode) if (crtc->mode)
RRModeDestroy(crtc->mode); RRModeDestroy(crtc->mode);
free(crtc->outputs);
free(crtc); free(crtc);
return 1; return 1;
} }