diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-22 15:35:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-22 16:43:19 +0100 |
commit | 27249537d7a2c0c9f817716d657224175a2d9acb (patch) | |
tree | 895189197a57266274c40e8f154fe84402748bba | |
parent | 9fcda71d753ab5126143f053c47513e9acf5c98b (diff) |
sna: Free our CRTC private after failing to create the xf86Crtc
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index fbd81d04..fd8efb5e 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1818,6 +1818,7 @@ sna_crtc_init(ScrnInfoPtr scrn, struct sna_mode *mode, int num) sna_crtc->cursor = gem_create(sna->kgem.fd, 64*64*4); if (!sna_crtc->cursor) { xf86CrtcDestroy(crtc); + free(sna_crtc); return false; } DBG(("%s: created handle=%d for cursor on CRTC:%d\n", |