diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-30 07:44:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-30 07:44:25 +0100 |
commit | 901d889dd7397dfa4c291f96af657e4b3433d795 (patch) | |
tree | 2a3d62eaa59cfa380eca91176c09566b2165c0c7 /tools | |
parent | a8b0ba0ed5f27e0d671b650d6f4bfe2fd86a0f3f (diff) |
intel-virtual-output: Remove one redundant cleanup on error
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtual.c | 4 |
1 files changed, 1 insertions, 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)); |