X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fxwayland.c;fp=src%2Fxwayland.c;h=3bea411500f86662237c636661df617e1f2361ad;hb=d2510f1e79e501a8e6aecb8058746a7456d1367e;hp=229ce75d879616cee25e8f241496739ba9bc0c77;hpb=8e20d1cb7626dc6cb5b7fbd61714d4ed76d0e1e9;p=src%2Fagl-compositor.git diff --git a/src/xwayland.c b/src/xwayland.c index 229ce75..3bea411 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -55,16 +55,6 @@ struct wet_xwayland { struct wet_process *process; }; -static void -process_destroy(struct wet_process *process, int status, bool call_cleanup) -{ - wl_list_remove(&process->link); - if (call_cleanup && process->cleanup) - process->cleanup(process, status, process->cleanup_data); - free(process->path); - free(process); -} - static int handle_display_fd(int fd, uint32_t mask, void *data) { @@ -337,7 +327,7 @@ wet_xwayland_destroy(struct weston_compositor *compositor, void *data) /* Calling this will call the process cleanup, in turn cleaning up the * client and the core Xwayland state */ if (wxw->process) - process_destroy(wxw->process, 0, true); + ivi_process_destroy(wxw->process, 0, true); free(wxw); }