From f8c31dd56a992e68fcaf17e89edae59761c954cc Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 18 Mar 2016 17:19:30 +0100 Subject: [PATCH] No point checking this twice. --- gfx/drivers_context/x_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index 729301e8c5..1f1c659b1d 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -410,10 +410,10 @@ static void *gfx_ctx_x_init(void *data) error: if (x) + { gfx_ctx_x_destroy_resources(x); - - if (x) free(x); + } g_x11_screen = 0; return NULL;