[PATCH xserver 3/3] randr: free crtc->outputs on destroy

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Thu Nov 9 09:21:21 UTC 2017


Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
 randr/rrcrtc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index c904fa035..39af679b2 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -878,6 +878,7 @@ RRCrtcDestroyResource(void *value, XID pid)
     free(crtc->gammaRed);
     if (crtc->mode)
         RRModeDestroy(crtc->mode);
+    free(crtc->outputs);
     free(crtc);
     return 1;
 }
-- 
2.14.1.439.g647b9b4702



More information about the xorg-devel mailing list