diff options
Diffstat (limited to 'src/sna/sna_display.c')
-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", |