mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 11:08:57 +00:00
frontend: Allow NULL wet_process cleanup handler
Don't call cleanup if we haven't been given anything to call. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
c2cd15ed11
commit
a72d0c1bb0
|
@ -362,7 +362,8 @@ sigchld_handler(int signal_number, void *data)
|
|||
wl_list_remove(&p->link);
|
||||
wl_list_init(&p->link);
|
||||
free(p->path);
|
||||
p->cleanup(p, status, p->cleanup_data);
|
||||
if (p->cleanup)
|
||||
p->cleanup(p, status, p->cleanup_data);
|
||||
}
|
||||
|
||||
if (pid < 0 && errno != ECHILD)
|
||||
|
|
Loading…
Reference in a new issue