mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 08:10:10 +01:00
main: fix destroying the compositor on error while starting
Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
2d24e64776
commit
3c241b18b8
1 changed files with 3 additions and 3 deletions
|
|
@ -730,16 +730,16 @@ int main(int argc, char *argv[])
|
||||||
ec = weston_compositor_create(display, NULL);
|
ec = weston_compositor_create(display, NULL);
|
||||||
if (ec == NULL) {
|
if (ec == NULL) {
|
||||||
weston_log("fatal: failed to create compositor\n");
|
weston_log("fatal: failed to create compositor\n");
|
||||||
goto out_signals;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ec->config = config;
|
ec->config = config;
|
||||||
if (weston_compositor_init_config(ec, config) < 0)
|
if (weston_compositor_init_config(ec, config) < 0)
|
||||||
goto out_signals;
|
goto out;
|
||||||
|
|
||||||
if (backend_init(ec, &argc, argv, config) < 0) {
|
if (backend_init(ec, &argc, argv, config) < 0) {
|
||||||
weston_log("fatal: failed to create compositor backend\n");
|
weston_log("fatal: failed to create compositor backend\n");
|
||||||
goto out_signals;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
catch_signals();
|
catch_signals();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue