[PATCH weston 2/2] main: fix destroying the compositor on error while starting

Derek Foreman derekf at osg.samsung.com
Mon Oct 5 12:53:59 PDT 2015


On 03/10/15 08:25 AM, Giulio Camuffo wrote:
> Signed-off-by: Giulio Camuffo <giuliocamuffo at gmail.com>

Reviewed-by: Derek Foreman <derekf at osg.samsung.com>

> ---
>  src/main.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/main.c b/src/main.c
> index a98570e..1591018 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -730,16 +730,16 @@ int main(int argc, char *argv[])
>  	ec = weston_compositor_create(display, NULL);
>  	if (ec == NULL) {
>  		weston_log("fatal: failed to create compositor\n");
> -		goto out_signals;
> +		goto out;
>  	}
>  
>  	ec->config = config;
>  	if (weston_compositor_init_config(ec, config) < 0)
> -		goto out_signals;
> +		goto out;
>  
>  	if (backend_init(ec, &argc, argv, config) < 0) {
>  		weston_log("fatal: failed to create compositor backend\n");
> -		goto out_signals;
> +		goto out;
>  	}
>  
>  	catch_signals();
> 



More information about the wayland-devel mailing list