wl_resource was use the wl_priv_signal for destroy signal from new version of wayland.
unlike the wl_signal, the link of signal should be removed in the destory callback function.
If not, it could the cause of memory crash when instance of link was freed without unlink
in the destroy callback.
Change-Id: Ieaa04e69eade4fd4a61da6a79d303a96546370d3
shell_client_t *shell_client = pepper_container_of(listener, shell_client,
client_destroy_listener);
+ wl_list_remove(&listener->link);
remove_ping_timer(shell_client);
pepper_list_remove(&shell_client->link);
free(shell_client);
{
pepper_buffer_t *buffer = pepper_container_of(listener, buffer,
resource_destroy_listener);
+
+ wl_list_remove(&listener->link);
pepper_object_fini(&buffer->base);
free(buffer);
}