[PATCH] toytoolkit: Don't segfault on window close

Kristian Høgsberg hoegsberg at gmail.com
Wed Oct 30 16:40:58 CET 2013


On Sun, Oct 27, 2013 at 09:32:54PM -0500, Jason Ekstrand wrote:
> Without this commit, the client will segmentation fault due to accessing
> the frame after everything has been destroyed.
> 
> ---
>  clients/window.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Yup, I hit this a couple times.  Committed, thanks.

Kristian

> diff --git a/clients/window.c b/clients/window.c
> index 331569a..be61a53 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -2396,7 +2396,7 @@ frame_handle_status(struct window_frame *frame, struct input *input,
>  					      window->user_data);
>  		else
>  			display_exit(window->display);
> -		frame_status_clear(frame->frame, FRAME_STATUS_CLOSE);
> +		return;
>  	}
>  
>  	if ((status & FRAME_STATUS_MOVE) && window->shell_surface) {
> -- 
> 1.8.3.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list