[PATCH weston] desktop-shell: Fix output destroying

Quentin Glidic sardemff7+wayland at sardemff7.net
Sat Aug 20 16:28:17 UTC 2016


On 20/08/2016 18:24, Armin Krezović wrote:
> On 20.08.2016 18:20, Quentin Glidic wrote:
>> From: Quentin Glidic <sardemff7+git at sardemff7.net>
>>
>> Now we properly unregister from the panel/background surface destroy
>> signals if the output is destroyed first.
>
> Trivial, and it fixes a crash.
>
> Reviewed-by: Armin Krezović <krezovic.armin at gmail.com>

Thanks, pushed:
4b6321f..561201c  master -> master

Cheers,


>>
>> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
>> ---
>>  desktop-shell/shell.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
>> index 7bcaa8d..7589586 100644
>> --- a/desktop-shell/shell.c
>> +++ b/desktop-shell/shell.c
>> @@ -4588,6 +4588,8 @@ handle_output_destroy(struct wl_listener *listener, void *data)
>>
>>  	shell_for_each_layer(shell, shell_output_destroy_move_layer, output);
>>
>> +	wl_list_remove(&output_listener->panel_surface_listener.link);
>> +	wl_list_remove(&output_listener->background_surface_listener.link);
>>  	wl_list_remove(&output_listener->destroy_listener.link);
>>  	wl_list_remove(&output_listener->link);
>>  	free(output_listener);
>>
>
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


-- 

Quentin “Sardem FF7” Glidic


More information about the wayland-devel mailing list