From 901d889dd7397dfa4c291f96af657e4b3433d795 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 30 Jun 2014 07:44:25 +0100 Subject: [PATCH] intel-virtual-output: Remove one redundant cleanup on error Signed-off-by: Chris Wilson --- tools/virtual.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/virtual.c b/tools/virtual.c index 5bc050b6..9ed1d03c 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -3260,10 +3260,8 @@ int main(int argc, char **argv) } ret = display_init_damage(ctx.display); - if (ret) { - context_cleanup(&ctx); + if (ret) goto out; - } if ((ctx.display->rr_event | ctx.display->rr_error) == 0) { fprintf(stderr, "RandR extension not supported by %s\n", DisplayString(ctx.display->dpy));