summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2017-11-09 10:21:21 +0100
committerAdam Jackson <ajax@redhat.com>2017-11-20 16:13:28 -0500
commitfc7fb5bbe1c8f787e53500b9a2ca4af815f310d1 (patch)
treed3f303328106015e09d512ee4a931f1f47ff966f /randr
parent16381d186e7c791031392ed8afcfd33009854e9e (diff)
randr: free crtc->outputs on destroy
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Diffstat (limited to 'randr')
-rw-r--r--randr/rrcrtc.c1
1 files changed, 1 insertions, 0 deletions
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;
}