mirror of
https://github.com/brl/mutter.git
synced 2025-02-21 07:24:09 +00:00
wayland-surface: Destroy the right thing
data is the wl_client, which we don't want to destroy. Destroy our XdgShell pointer instead.
This commit is contained in:
parent
f27f6aab78
commit
d39baeb8ad
@ -1074,7 +1074,7 @@ static void
|
|||||||
xdg_shell_handle_client_destroy (struct wl_listener *listener, void *data)
|
xdg_shell_handle_client_destroy (struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
XdgShell *xdg_shell = wl_container_of (listener, xdg_shell, client_destroy_listener);
|
XdgShell *xdg_shell = wl_container_of (listener, xdg_shell, client_destroy_listener);
|
||||||
g_slice_free (XdgShell, data);
|
g_slice_free (XdgShell, xdg_shell);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wl_resource *
|
static struct wl_resource *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user